Mage_Adminhtml_Block_Extensions_Local_Edit_Tab_Depends Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Extensions_Local_Edit_Tab_Depends:

Mage_Adminhtml_Block_Extensions_Local_Edit_Tab_Abstract Mage_Adminhtml_Block_Widget_Form Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getDepends ()
 getGroups ()

Protected Member Functions

 _addDep (&$deps, $role, $type, $dep)


Detailed Description

Definition at line 34 of file Depends.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

_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 (  ) 

Definition at line 83 of file Depends.php.

00084     {
00085         $groups = array();
00086         foreach ($this->getData('pkg/dependencies/groups') as $group) {
00087             $groups[] = array(
00088                 'name'=>$group['name'],
00089                 'hint'=>$group['hint'],
00090             );
00091         }
00092         return $groups;
00093     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:50 2009 for Magento by  doxygen 1.5.8