Public Member Functions | |
__construct () | |
getMageRoles () | |
getPearRoles () |
Definition at line 34 of file Contents.php.
__construct | ( | ) |
Class constructor
Reimplemented from Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Abstract.
Definition at line 37 of file Contents.php.
00038 { 00039 parent::__construct(); 00040 $this->setTemplate('extensions/custom/contents.phtml'); 00041 }
getMageRoles | ( | ) |
Definition at line 43 of file Contents.php.
00044 { 00045 $arr = array(); 00046 foreach (Mage::getModel('adminhtml/extension')->getRoles() as $k=>$role) { 00047 if (isset($role['name'])) { 00048 $arr[$k] = $role['name']; 00049 } 00050 } 00051 return $arr; 00052 }
getPearRoles | ( | ) |
Definition at line 54 of file Contents.php.
00055 { 00056 return array( 00057 'php'=>'PHP Files', 00058 'data'=>'Data files', 00059 'doc'=>'Documentation', 00060 'script'=>'Scripts', 00061 'test'=>'Tests' 00062 ); 00063 }