src/XML/DOM/PEAR/PackageReader.php
private function readRelease( $domNode )
	{
		$release	= array();
		foreach( $domNode->childNodes as $node )
		{
			$nodeName	= $node->nodeName;
			switch( $nodeName )
			{
				case 'deps':
					foreach( $node->childNodes as $dep )
						$release['dependencies'][]	= $this->getNodeValue( $dep );
					break;
				case 'filelist':
					foreach( $node->childNodes as $file )
						$release['files'][]	= $this->getNodeAttributes( $file );
					break;
				default:
					$release[$nodeName]	= $this->getNodeValue( $node );
					break;
			}
		}
		return $release;
	}
private function readRelease( $domNode )
	{
		$release	= array();
		foreach( $domNode->childNodes as $node )
		{
			$nodeName	= $node->nodeName;
			switch( $nodeName )
			{
				case 'deps':
					foreach( $node->childNodes as $dep )
						$release['dependencies'][]	= $this->getNodeValue( $dep );
					break;
				case 'filelist':
					foreach( $node->childNodes as $file )
						$release['files'][]	= $this->getNodeAttributes( $file );
					break;
				default:
					$release[$nodeName]	= $this->getNodeValue( $node );
					break;
			}
		}
		return $release;
	}
private function readRelease ( $ domNode ) { $ release = array ( ) ; foreach ( $ domNode -> childNodes as $ node ) { $ nodeName = $ node -> nodeName ; switch ( $ nodeName ) { case 'deps' : foreach ( $ node -> childNodes as $ dep ) $ release [ 'dependencies' ] [ ] = $ this -> getNodeValue ( $ dep ) ; break ; case 'filelist' : foreach ( $ node -> childNodes as $ file ) $ release [ 'files' ] [ ] = $ this -> getNodeAttributes ( $ file ) ; break ; default : $ release [ $ nodeName ] = $ this -> getNodeValue ( $ node ) ; break ; } } return $ release ; }
Reads a Release Block and returns an Array.
@access		protected
@param		DOMNode		$domNode		DOM Node of Release Block
@return		array
Reads a Release Block and returns an Array .