Пример #1
0
 function getDeps()
 {
     if (isset($this->_packagefile)) {
         $ver = $this->_packagefile->getPackagexmlVersion();
         if (version_compare($ver, '2.0', '>=')) {
             return $this->_packagefile->getDeps(true);
         }
         return $this->_packagefile->getDeps();
     } elseif (isset($this->_downloadURL['info'])) {
         $ver = $this->_downloadURL['info']->getPackagexmlVersion();
         if (version_compare($ver, '2.0', '>=')) {
             return $this->_downloadURL['info']->getDeps(true);
         }
         return $this->_downloadURL['info']->getDeps();
     }
     return array();
 }
Пример #2
0
 function getDeps()
 {
     if (isset($this->_packagefile)) {
         if ($this->_packagefile->getPackagexmlVersion() == '2.0') {
             return $this->_packagefile->getDeps(true);
         } else {
             return $this->_packagefile->getDeps();
         }
     } elseif (isset($this->_downloadURL['info'])) {
         if ($this->_downloadURL['info']->getPackagexmlVersion() == '2.0') {
             return $this->_downloadURL['info']->getDeps(true);
         } else {
             return $this->_downloadURL['info']->getDeps();
         }
     } else {
         return array();
     }
 }