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

Ubiquity\security\acl\cache$PermissionsMap This class is part of Ubiquity. More...

+ Inheritance diagram for PermissionsMap:

Public Member Functions

 __construct ()
 
 addAction (string $controller, string $action, ?string $resource=' *', ?string $permission='ALL')
 
 getRessourcePermission (string $controller, string $action)
 
 save ()
 
 init ()
 
 load ()
 
 getMap ()
 
 getObjectMap ()
 
 cacheUpdated ()
 

Protected Member Functions

 getKey ($controller, $action)
 
- Protected Member Functions inherited from AclCacheTrait
 getRootKey ($element)
 
 createCache ($part)
 

Private Member Functions

 _getRessourcePermission (string $controller, string $action)
 

Private Attributes

 $arrayMap
 
const CACHE_KEY = 'permissionsMap'
 

Additional Inherited Members

- Static Protected Attributes inherited from AclCacheTrait
static $KEY = 'acls/'
 

Detailed Description

Ubiquity\security\acl\cache$PermissionsMap This class is part of Ubiquity.

Author
jc
Version
1.0.3

Definition at line 16 of file PermissionsMap.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Definition at line 26 of file PermissionsMap.php.

Member Function Documentation

◆ _getRessourcePermission()

_getRessourcePermission ( string  $controller,
string  $action 
)
private

Definition at line 35 of file PermissionsMap.php.

◆ addAction()

addAction ( string  $controller,
string  $action,
?string  $resource = '*',
?string  $permission = 'ALL' 
)

Definition at line 39 of file PermissionsMap.php.

◆ cacheUpdated()

cacheUpdated ( )

Definition at line 99 of file PermissionsMap.php.

◆ getKey()

getKey (   $controller,
  $action 
)
protected

Definition at line 31 of file PermissionsMap.php.

◆ getMap()

getMap ( )

Definition at line 78 of file PermissionsMap.php.

◆ getObjectMap()

getObjectMap ( )

Definition at line 88 of file PermissionsMap.php.

◆ getRessourcePermission()

getRessourcePermission ( string  $controller,
string  $action 
)
Parameters
string$controller
string$action
Returns
array|NULL

Definition at line 52 of file PermissionsMap.php.

◆ init()

init ( )

Definition at line 70 of file PermissionsMap.php.

◆ load()

load ( )

Definition at line 74 of file PermissionsMap.php.

◆ save()

save ( )

Definition at line 66 of file PermissionsMap.php.

Field Documentation

◆ $arrayMap

$arrayMap
private

Definition at line 22 of file PermissionsMap.php.

◆ CACHE_KEY

const CACHE_KEY = 'permissionsMap'
private

Definition at line 24 of file PermissionsMap.php.


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