Mage_Api_Model_Acl
extends Acl
in package
since 26.7 Use Maho_ApiPlatform instead.
Table of Contents
Constants
- ROLE_TYPE_GROUP : mixed = 'G'
- All the group roles are prepended by G
- ROLE_TYPE_USER : mixed = 'U'
- All the user roles are prepended by U
- RULE_PERM_ALLOW : mixed = 2
- Permission level to allow access
- RULE_PERM_DENY : mixed = 0
- Permission level to deny access
- RULE_PERM_INHERIT : mixed = 1
- Permission level to inheric access from parent role
- USER_TYPE_ADMIN : mixed = 'A'
- USER_TYPE_CUSTOMER : mixed = 'C'
- USER_TYPE_GUEST : mixed = 'G'
- User types for store access G - Guest customer (anonymous) C - Authenticated customer A - Authenticated admin user
Properties
Methods
- addRoleParent() : self
- Add parent to role object
- getRoleRegistry() : Mage_Api_Model_Acl_Role_Registry
- Get role registry object or create one
Constants
ROLE_TYPE_GROUP
All the group roles are prepended by G
public
mixed
ROLE_TYPE_GROUP
= 'G'
ROLE_TYPE_USER
All the user roles are prepended by U
public
mixed
ROLE_TYPE_USER
= 'U'
RULE_PERM_ALLOW
Permission level to allow access
public
mixed
RULE_PERM_ALLOW
= 2
RULE_PERM_DENY
Permission level to deny access
public
mixed
RULE_PERM_DENY
= 0
RULE_PERM_INHERIT
Permission level to inheric access from parent role
public
mixed
RULE_PERM_INHERIT
= 1
USER_TYPE_ADMIN
public
mixed
USER_TYPE_ADMIN
= 'A'
USER_TYPE_CUSTOMER
public
mixed
USER_TYPE_CUSTOMER
= 'C'
USER_TYPE_GUEST
User types for store access G - Guest customer (anonymous) C - Authenticated customer A - Authenticated admin user
public
mixed
USER_TYPE_GUEST
= 'G'
Properties
$_roleRegistry
protected
Mage_Api_Model_Acl_Role_Registry|null
$_roleRegistry
= \null
Methods
addRoleParent()
Add parent to role object
public
addRoleParent(RoleInterface|string $role, array<string|int, mixed>|RoleInterface|string $parent) : self
Parameters
- $role : RoleInterface|string
- $parent : array<string|int, mixed>|RoleInterface|string
Return values
selfgetRoleRegistry()
Get role registry object or create one
protected
getRoleRegistry() : Mage_Api_Model_Acl_Role_Registry
Attributes
- #[Override]