lib/magento/Package.php
protected function _loadFile($filename='')
    {
        if (is_null($this->_reader)) {
            $this->_reader = new Mage_Connect_Package_Reader($filename);
        }
        $content = $this->_reader->load();
        $this->_packageXml = simplexml_load_string($content);
        return $this;
    }
protected function _loadFile($filename='')
    {
        if (is_null($this->_reader)) {
            $this->_reader = new Mage_Connect_Package_Reader($filename);
        }
        $content = $this->_reader->load();
        $this->_packageXml = simplexml_load_string($content);
        return $this;
    }
protected function _loadFile ( $ filename = '' ) { if ( is_null ( $ this -> _reader ) ) { $ this -> _reader = new Mage_Connect_Package_Reader ( $ filename ) ; } $ content = $ this -> _reader -> load ( ) ; $ this -> _packageXml = simplexml_load_string ( $ content ) ; return $ this ; }
Loads a package from specified file

@param string $filename
@return Mage_Connect_Package
Loads a package from specified file