PermissionsCache Class Reference

Inheritance diagram for PermissionsCache:
ZurmoCache

Static Public Member Functions

static getCombinedPermissions (SecurableItem $securableItem, Permitable $permitable)
static cacheCombinedPermissions (SecurableItem $securableItem, Permitable $permitable, $combinedPermissions)
static cacheNamedSecurableItemActualPermissions ($namedSecurableItemName, $permitable, $actualPermissions)
static getNamedSecurableItemActualPermissions ($namedSecurableItemName, $permitable)
static getAllModulePermissionsDataByPermitable ($permitable)
static cacheAllModulePermissionsDataByPermitables ($permitable, array $data)
static forgetSecurableItem (SecurableItem $securableItem, $forgetDbLevelCache=true)
static forgetAll ($forgetDbLevelCache=true)

Static Public Attributes

static $cacheType = 'P:'
static $modulePermissionsDataCachePrefix = 'MD:'

Detailed Description

Definition at line 45 of file PermissionsCache.php.


Member Function Documentation

static getCombinedPermissions ( SecurableItem securableItem,
Permitable permitable 
) [static]
Parameters:
SecurableItem $securableItem
Permitable $permitable
Returns:
mixed
Exceptions:
NotFoundException 

Definition at line 61 of file PermissionsCache.php.

static cacheCombinedPermissions ( SecurableItem securableItem,
Permitable permitable,
combinedPermissions 
) [static]
Parameters:
SecurableItem $securableItem
Permitable $permitable
int $combinedPermissions

Definition at line 118 of file PermissionsCache.php.

static cacheNamedSecurableItemActualPermissions ( namedSecurableItemName,
permitable,
actualPermissions 
) [static]

Cache the actual permissions for a permitable against a named securable item. The actual permissions against a named securable item do not change very often making this cache useful to speed up performance.

Parameters:
string $namedSecurableItemName
object $permitable
array $actualPermissions

Definition at line 170 of file PermissionsCache.php.

static getNamedSecurableItemActualPermissions ( namedSecurableItemName,
permitable 
) [static]

Given the name of a named securable item, return the cached entry if available.

Parameters:
string $namedSecurableItemName
Permitable $permitable
Exceptions:
NotFoundException 

Definition at line 193 of file PermissionsCache.php.

static getAllModulePermissionsDataByPermitable ( permitable  )  [static]
Parameters:
Permitable $permitable
Returns:
mixed
Exceptions:
NotFoundException 

Definition at line 224 of file PermissionsCache.php.

static cacheAllModulePermissionsDataByPermitables ( permitable,
array $  data 
) [static]
Parameters:
Permitable $permitable
array $data

Definition at line 248 of file PermissionsCache.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Apr 28 07:10:28 2017