Mage_Admin_Model_Acl Class Reference

List of all members.

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


Detailed Description

Definition at line 35 of file Acl.php.


Member Function Documentation

_getRoleRegistry (  )  [protected]

Get role registry object or create one

Returns:
Mage_Admin_Model_Acl_Role_Registry

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

Parameters:
Zend_Acl_Role $role
Zend_Acl_Role $parent
Returns:
Mage_Admin_Model_Acl

Definition at line 87 of file Acl.php.

00088     {
00089         $this->_getRoleRegistry()->addParent($role, $parent);
00090         return $this;
00091     }


Member Data Documentation

const ROLE_TYPE_GROUP = 'G'

All the group roles are prepended by G

Definition at line 41 of file Acl.php.

const ROLE_TYPE_USER = 'U'

All the user roles are prepended by U

Definition at line 47 of file Acl.php.

const RULE_PERM_ALLOW = 2

Permission level to allow access

Definition at line 65 of file Acl.php.

const RULE_PERM_DENY = 0

Permission level to deny access

Definition at line 53 of file Acl.php.

const RULE_PERM_INHERIT = 1

Permission level to inheric access from parent role

Definition at line 59 of file Acl.php.


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

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