src/FS/File/ICal/Parser.php
protected static function parseLine( $line )
	{
		$pos	= strpos( $line, ":" );
		$name	= substr( $line, 0, $pos );
		$value	= substr( $line, $pos+1 );

		$params	= array();
		if( substr_count( $name, ";" ) )
		{
			$pos	= strpos( $name, ";" );
			$params	= substr( $name, $pos+1 );
			$name	= substr( $name, 0, $pos );
			$params	= explode( ",", utf8_decode( $params ) );
		}

		$parsed	= array(
			"name"	=> trim( $name ),
			"param"	=> $params,
			"value"	=> utf8_decode( $value ),
		);
		return $parsed;
	}
protected static function parseLine( $line )
	{
		$pos	= strpos( $line, ":" );
		$name	= substr( $line, 0, $pos );
		$value	= substr( $line, $pos+1 );

		$params	= array();
		if( substr_count( $name, ";" ) )
		{
			$pos	= strpos( $name, ";" );
			$params	= substr( $name, $pos+1 );
			$name	= substr( $name, 0, $pos );
			$params	= explode( ",", utf8_decode( $params ) );
		}

		$parsed	= array(
			"name"	=> trim( $name ),
			"param"	=> $params,
			"value"	=> utf8_decode( $value ),
		);
		return $parsed;
	}
protected static function parseLine ( $ line ) { $ pos = strpos ( $ line , ":" ) ; $ name = substr ( $ line , 0 , $ pos ) ; $ value = substr ( $ line , $ pos + 1 ) ; $ params = array ( ) ; if ( substr_count ( $ name , ";" ) ) { $ pos = strpos ( $ name , ";" ) ; $ params = substr ( $ name , $ pos + 1 ) ; $ name = substr ( $ name , 0 , $ pos ) ; $ params = explode ( "," , utf8_decode ( $ params ) ) ; } $ parsed = array ( "name" => trim ( $ name ) , "param" => $ params , "value" => utf8_decode ( $ value ) , ) ; return $ parsed ; }
Parses a single iCal Lines.
@access		protected
@static
@param		string		$line		Line to parse
@return 	array
Parses a single iCal Lines .