Public Member Functions | |
__construct () | |
getDepends () | |
getGroups () | |
Protected Member Functions | |
_addDep (&$deps, $role, $type, $dep) |
Definition at line 34 of file Depends.php.
__construct | ( | ) |
Class constructor
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 37 of file Depends.php.
00038 { 00039 parent::__construct(); 00040 $this->setTemplate('extensions/local/depends.phtml'); 00041 }
_addDep | ( | &$ | deps, | |
$ | role, | |||
$ | type, | |||
$ | dep | |||
) | [protected] |
Definition at line 69 of file Depends.php.
00070 { 00071 $deps[] = array( 00072 'type'=>$type, 00073 'role'=>isset($dep['conflicts']) ? 'conflicts' : $role, 00074 'name'=>$dep['name'], 00075 'channel'=>isset($dep['channel']) ? $dep['channel'] : null, 00076 'min'=>isset($dep['min']) ? $dep['min'] : null, 00077 'max'=>isset($dep['max']) ? $dep['max'] : null, 00078 'recommended'=>isset($dep['recommended']) ? $dep['recommended'] : null, 00079 'exclude'=>isset($dep['exclude']) ? print_r($dep['exclude'], 1) : null, 00080 ); 00081 }
getDepends | ( | ) |
Definition at line 43 of file Depends.php.
00044 { 00045 foreach ($this->getPkg()->getDependencies() as $role=>$types) { 00046 if (!('required'===$role || 'optional'===$role)) { 00047 continue; 00048 } 00049 foreach ($types as $type=>$depends) { 00050 if (!('php'===$type || 'package'===$type || 'extension'===$type)) { 00051 continue; 00052 } 00053 if (isset($depends[0])) { 00054 foreach ($depends as $dep) { 00055 $this->_addDep($deps, $role, $type, $dep); 00056 } 00057 } else { 00058 if ('php'===$type) { 00059 $depends['name'] = 'PHP'; 00060 } 00061 $this->_addDep($deps, $role, $type, $depends); 00062 } 00063 } 00064 } 00065 00066 return $deps; 00067 }
getGroups | ( | ) |