Class Legacy_GenericPrincipal
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'.
-
XCube_Principal
-
Legacy_GenericPrincipal
Methods summary
public
|
#
addRole( $roleName $roleName )
Adds a role to this object.
Adds a role to this object.
Parameters
- $roleName
$roleName string
|
public
boolean
|
#
isInRole( $roleName )
Gets a value that indicates whether this principal has a role specified by
$rolename.
Gets a value that indicates whether this principal has a role specified by
$rolename.
Returns
boolean
Var
string $rolename
Overrides
|