lib/magento/Package.php
public function getDependencyPackages()
    {
        $this->_dependencyPackages = array();
        if (!isset($this->_packageXml->dependencies->required->package)) {
            return $this->_dependencyPackages;
        }
        foreach($this->_packageXml->dependencies->required->package as $_package) {
            $add = array(
                'name'    => (string)$_package->name,
                'channel' => (string)$_package->channel,
                'min'     => (string)$_package->min,
                'max'     => (string)$_package->max,
            );
            if(isset($_package->files)) {
                $add['files'] = array();
                foreach($_package->files as $node) {
                    if(isset($node->file)) {

                        $add['files'][] = array('target' => (string) $node->file['target'], 'path'=> (string) $node->file['path']);
                    }
                }
            }
            $this->_dependencyPackages[] = $add;
        }
        return $this->_dependencyPackages;
    }
public function getDependencyPackages()
    {
        $this->_dependencyPackages = array();
        if (!isset($this->_packageXml->dependencies->required->package)) {
            return $this->_dependencyPackages;
        }
        foreach($this->_packageXml->dependencies->required->package as $_package) {
            $add = array(
                'name'    => (string)$_package->name,
                'channel' => (string)$_package->channel,
                'min'     => (string)$_package->min,
                'max'     => (string)$_package->max,
            );
            if(isset($_package->files)) {
                $add['files'] = array();
                foreach($_package->files as $node) {
                    if(isset($node->file)) {

                        $add['files'][] = array('target' => (string) $node->file['target'], 'path'=> (string) $node->file['path']);
                    }
                }
            }
            $this->_dependencyPackages[] = $add;
        }
        return $this->_dependencyPackages;
    }
public function getDependencyPackages ( ) { $ this -> _dependencyPackages = array ( ) ; if ( ! isset ( $ this -> _packageXml -> dependencies -> required -> package ) ) { return $ this -> _dependencyPackages ; } foreach ( $ this -> _packageXml -> dependencies -> required -> package as $ _package ) { $ add = array ( 'name' => ( string ) $ _package -> name , 'channel' => ( string ) $ _package -> channel , 'min' => ( string ) $ _package -> min , 'max' => ( string ) $ _package -> max , ) ; if ( isset ( $ _package -> files ) ) { $ add [ 'files' ] = array ( ) ; foreach ( $ _package -> files as $ node ) { if ( isset ( $ node -> file ) ) { $ add [ 'files' ] [ ] = array ( 'target' => ( string ) $ node -> file [ 'target' ] , 'path' => ( string ) $ node -> file [ 'path' ] ) ; } } } $ this -> _dependencyPackages [ ] = $ add ; } return $ this -> _dependencyPackages ; }
Get list of dependency packages.

@return array
Get list of dependency packages .