|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| addRole ($roleName) | |
| isInRole ($roleName) | |
Public Member Functions inherited from XCube_Principal | |
| __construct ( $identity, $roles=[]) | |
| getIdentity () | |
Additional Inherited Members | |
Data Fields inherited from XCube_Principal | |
| $mIdentity | |
| $_mRoles = [] | |
This principal is free to add roles. And, this is also an interface, because addRole() is used as a common interface in Legacy. Therefore, the dev team may add the interface class to this file.
[Role Naming Convention] Module.{dirname}.Visitor is 'module_read'. Module.{dirname}.Admin is 'module_admin'.
Definition at line 51 of file Legacy_Identity.class.php.
| addRole | ( | $roleName | ) |
Adds a role to this object.
| string | $roleName |
Definition at line 57 of file Legacy_Identity.class.php.
| isInRole | ( | $roleName | ) |
Reimplemented from XCube_Principal.
Definition at line 64 of file Legacy_Identity.class.php.