Public Member Functions | |
addRoleParent ($role, $parent) | |
Public Attributes | |
const | ROLE_TYPE_GROUP = 'G' |
const | ROLE_TYPE_USER = 'U' |
const | RULE_PERM_DENY = 0 |
const | RULE_PERM_INHERIT = 1 |
const | RULE_PERM_ALLOW = 2 |
Protected Member Functions | |
_getRoleRegistry () |
Definition at line 35 of file Acl.php.
_getRoleRegistry | ( | ) | [protected] |
Get role registry object or create one
Definition at line 72 of file Acl.php.
00073 { 00074 if (null === $this->_roleRegistry) { 00075 $this->_roleRegistry = Mage::getModel('admin/acl_role_registry'); 00076 } 00077 return $this->_roleRegistry; 00078 }
addRoleParent | ( | $ | role, | |
$ | parent | |||
) |
Add parent to role object
Zend_Acl_Role | $role | |
Zend_Acl_Role | $parent |
Definition at line 87 of file Acl.php.
00088 { 00089 $this->_getRoleRegistry()->addParent($role, $parent); 00090 return $this; 00091 }
const ROLE_TYPE_GROUP = 'G' |
const ROLE_TYPE_USER = 'U' |
const RULE_PERM_ALLOW = 2 |
const RULE_PERM_DENY = 0 |
const RULE_PERM_INHERIT = 1 |