Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AclControllerTrait Class Reference

To use with a controller with acls. More...

Public Member Functions

 _getRole ()
 
 isValid ($action)
 Returns True if access to the controller is allowed for the role returned by _getRole method.
 

Protected Member Functions

 isValidRole ($action, $role)
 Returns True if access to the controller is allowed for $role.
 

Detailed Description

To use with a controller with acls.

Ubiquity\security\acl\controllers$AclControllerTrait This class is part of Ubiquity

Author
jc
Version
1.0.1

Definition at line 18 of file AclControllerTrait.php.

Member Function Documentation

◆ _getRole()

_getRole ( )
abstract

◆ isValid()

isValid (   $action)

Returns True if access to the controller is allowed for the role returned by _getRole method.

To be override in sub classes

Parameters
string$action
Returns
boolean

Definition at line 50 of file AclControllerTrait.php.

◆ isValidRole()

isValidRole (   $action,
  $role 
)
protected

Returns True if access to the controller is allowed for $role.

Parameters
string$action
string$role
Returns
boolean

Definition at line 28 of file AclControllerTrait.php.


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