Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AclCacheTrait.php
Go to the documentation of this file.
1
<?php
2
namespace
Ubiquity\security\acl\cache\traits
;
3
4
use
Ubiquity\cache\CacheManager
;
5
14
class
AclCacheTrait
{
15
16
protected
static
$KEY
=
'acls/'
;
17
18
protected
function
getRootKey
($element) {
19
return
self::$KEY . \md5($element);
20
}
21
22
protected
function
createCache
($part) {
23
if
(!
CacheManager::$cache
->exists($part)) {
24
CacheManager::$cache
->store($part, []);
25
}
26
}
27
}
28
Ubiquity\cache\CacheManager
Manager for caches (Router, Rest, models).
Definition
CacheManager.php:28
Ubiquity\cache\CacheManager\$cache
static $cache
Definition
CacheManager.php:34
Ubiquity\security\acl\cache\traits\AclCacheTrait
Ubiquity\security\acl\cache\traits$AclCacheTrait This class is part of Ubiquity.
Definition
AclCacheTrait.php:14
Ubiquity\security\acl\cache\traits\AclCacheTrait\createCache
createCache($part)
Definition
AclCacheTrait.php:22
Ubiquity\security\acl\cache\traits\AclCacheTrait\$KEY
static $KEY
Definition
AclCacheTrait.php:16
Ubiquity\security\acl\cache\traits\AclCacheTrait\getRootKey
getRootKey($element)
Definition
AclCacheTrait.php:18
Ubiquity\security\acl\cache\traits
Definition
AclCacheTrait.php:2
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity-acl
src
Ubiquity
security
acl
cache
traits
AclCacheTrait.php
Generated on Sun Dec 10 2023 15:04:01 for
Ubiquity
by
doxygen
1.9.8