src/FS/File/Configuration/Converter.php
protected static function loadXml( $fileName )
	{
		$xml	= XML_ElementReader::readFile( $fileName );
		foreach( $xml as $sectionNode )
		{
			$sectionName	= $sectionNode->getAttribute( 'name' );
			foreach( $sectionNode as $valueNode )
			{
				$item	= array(
					'key'		=> $valueNode->getAttribute( 'name' ),
					'value'		=> (string) $valueNode,
					'type'		=> $valueNode->getAttribute( 'type' ),
				);
	
				if( $valueNode->hasAttribute( 'comment' ) )
					$item['comment']	= $valueNode->getAttribute( 'comment' );
				settype( $item['value'], $item['type'] );
				$data[$sectionName][]	= $item;
			}
		}
		return $data;
	}
protected static function loadXml( $fileName )
	{
		$xml	= XML_ElementReader::readFile( $fileName );
		foreach( $xml as $sectionNode )
		{
			$sectionName	= $sectionNode->getAttribute( 'name' );
			foreach( $sectionNode as $valueNode )
			{
				$item	= array(
					'key'		=> $valueNode->getAttribute( 'name' ),
					'value'		=> (string) $valueNode,
					'type'		=> $valueNode->getAttribute( 'type' ),
				);
	
				if( $valueNode->hasAttribute( 'comment' ) )
					$item['comment']	= $valueNode->getAttribute( 'comment' );
				settype( $item['value'], $item['type'] );
				$data[$sectionName][]	= $item;
			}
		}
		return $data;
	}
protected static function loadXml ( $ fileName ) { $ xml = XML_ElementReader :: readFile ( $ fileName ) ; foreach ( $ xml as $ sectionNode ) { $ sectionName = $ sectionNode -> getAttribute ( 'name' ) ; foreach ( $ sectionNode as $ valueNode ) { $ item = array ( 'key' => $ valueNode -> getAttribute ( 'name' ) , 'value' => ( string ) $ valueNode , 'type' => $ valueNode -> getAttribute ( 'type' ) , ) ; if ( $ valueNode -> hasAttribute ( 'comment' ) ) $ item [ 'comment' ] = $ valueNode -> getAttribute ( 'comment' ) ; settype ( $ item [ 'value' ] , $ item [ 'type' ] ) ; $ data [ $ sectionName ] [ ] = $ item ; } } return $ data ; }
Loads Configuration Data from XML File.
@access		protected
@static
@param		string		$fileName		File Name of XML File.
@return		array
Loads Configuration Data from XML File .