This is the generic Roles class
It loads the ACL in two stages when there is no db present, otherwise it just loads from the db:
| package | Gems |
|---|---|
| subpackage | Roles |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.0 |
__call(\stringethod $method, mixed $args) : mixed
\stringethod
mixed
mixed__construct(mixed $cache = null)
mixed\Zend_Cache_Core or \GemsEscort
build() : void
getAcl() : \MUtil_Acl
\MUtil_AclgetInstance() : \Gems_Roles
\Gems_Rolesload()
loadDbAcl()
\Exception |
|---|
loadDefaultPrivileges()
loadDefaultRoles()
setCache(mixed $cache)
mixed
translateToRoleIds(mixed $roles) : array
mixedstring or array
arrayOf role id'stranslateToRoleNames(mixed $roles) : array
mixedstring or array
array_deleteCache()
_initAcl()
_save()
\Gems_Exception |
|---|
$_acl : \MUtil_Acl
$_cache : \Zend_Cache_Core
null$_cacheid : string
'gems_acl'$_instanceOfSelf : \Gems_Roles
$_roleTranslations : array
array()