src/FS/File/ICal/Builder.php
protected static function buildRecursive( $node  )
	{
		$lines	= array();
		$name	= $node->getNodeName();
		$value	= $node->getContent();
		$param	= $node->getAttributes();
		if( NULL === $value )
		{
			$lines[]	= "BEGIN:".strtoupper( $name );
			$children	= $node->getChildren();
			foreach( $children as $child )
				foreach( self::buildRecursive( $child ) as $line )
					$lines[]	= $line;
			$lines[]	= "END:".strtoupper( $name );
		}
		else
			$lines[]	= self::buildLine( $name, $param, $value );
		return $lines;
	}
protected static function buildRecursive( $node  )
	{
		$lines	= array();
		$name	= $node->getNodeName();
		$value	= $node->getContent();
		$param	= $node->getAttributes();
		if( NULL === $value )
		{
			$lines[]	= "BEGIN:".strtoupper( $name );
			$children	= $node->getChildren();
			foreach( $children as $child )
				foreach( self::buildRecursive( $child ) as $line )
					$lines[]	= $line;
			$lines[]	= "END:".strtoupper( $name );
		}
		else
			$lines[]	= self::buildLine( $name, $param, $value );
		return $lines;
	}
protected static function buildRecursive ( $ node ) { $ lines = array ( ) ; $ name = $ node -> getNodeName ( ) ; $ value = $ node -> getContent ( ) ; $ param = $ node -> getAttributes ( ) ; if ( NULL === $ value ) { $ lines [ ] = "BEGIN:" . strtoupper ( $ name ) ; $ children = $ node -> getChildren ( ) ; foreach ( $ children as $ child ) foreach ( self :: buildRecursive ( $ child ) as $ line ) $ lines [ ] = $ line ; $ lines [ ] = "END:" . strtoupper ( $ name ) ; } else $ lines [ ] = self :: buildLine ( $ name , $ param , $ value ) ; return $ lines ; }
Builds Array of iCal Lines from XML Tree recursive.
@access		protected
@static
@param		XML_DOM_Node	node	XML Node
@return 	array
Builds Array of iCal Lines from XML Tree recursive .