src/FS/File/ICal/Parser.php
public function parse( $name, $string )
	{
		$root	= new XML_DOM_Node( $name );

		$string	= self::unfoldString( $string );
		$lines = explode( self::$lineBreak, $string );

		while( count( $lines ) )
		{
			$line	= array_shift( $lines );
			$parsed	= self::parseLine( $line );
			if( $parsed['name'] == "BEGIN" )
				self::parseRecursive( $parsed['value'], $root, $lines );
		}
		return $root;
	}
public function parse( $name, $string )
	{
		$root	= new XML_DOM_Node( $name );

		$string	= self::unfoldString( $string );
		$lines = explode( self::$lineBreak, $string );

		while( count( $lines ) )
		{
			$line	= array_shift( $lines );
			$parsed	= self::parseLine( $line );
			if( $parsed['name'] == "BEGIN" )
				self::parseRecursive( $parsed['value'], $root, $lines );
		}
		return $root;
	}
public function parse ( $ name , $ string ) { $ root = new XML_DOM_Node ( $ name ) ; $ string = self :: unfoldString ( $ string ) ; $ lines = explode ( self :: $ lineBreak , $ string ) ; while ( count ( $ lines ) ) { $ line = array_shift ( $ lines ) ; $ parsed = self :: parseLine ( $ line ) ; if ( $ parsed [ 'name' ] == "BEGIN" ) self :: parseRecursive ( $ parsed [ 'value' ] , $ root , $ lines ) ; } return $ root ; }
Parses iCal Lines and returns a XML Tree.
@access		public
@param		string		$name		Line Name
@param		array		$string		String of iCal Lines
@return 	XML_DOM_Node
Parses iCal Lines and returns a XML Tree .