XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Legacy_GenericPrincipal Class Reference
Inheritance diagram for Legacy_GenericPrincipal:
XCube_Principal

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 = []
 

Detailed Description

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.

Member Function Documentation

◆ addRole()

addRole ( $roleName)

Adds a role to this object.

Parameters
string$roleName

Definition at line 57 of file Legacy_Identity.class.php.

◆ isInRole()

isInRole ( $roleName)

Reimplemented from XCube_Principal.

Definition at line 64 of file Legacy_Identity.class.php.


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