Access
class Access
Wrapper class for Access
Methods
Helper wrapper method for addUserToGroup
Helper wrapper method for check
Helper wrapper method for checkGroup
Helper wrapper method for getAssetRules
Helper wrapper method for getGroupsByUser
Helper wrapper method for getUsersByGroup
Helper wrapper method for getAuthorisedViewLevels
Helper wrapper method for getActions
Helper wrapper method for getActionsFromFile
Helper wrapper method for getActionsFromData
Details
boolean
check(
integer $userId,
string $action,
mixed $asset = null)
Helper wrapper method for check
boolean
checkGroup(
integer $groupId,
string $action,
mixed $asset = null)
Helper wrapper method for checkGroup
Rules
getAssetRules(
mixed $asset,
boolean $recursive = false)
Helper wrapper method for getAssetRules
array
getGroupsByUser(
integer $userId,
boolean $recursive = true)
Helper wrapper method for getGroupsByUser
array
getUsersByGroup(
integer $groupId,
boolean $recursive = false)
Helper wrapper method for getUsersByGroup
array
getActions(
string $component,
string $section = 'component')
Helper wrapper method for getActions
boolean|array
getActionsFromFile(
string $file,
string $xpath = '/access/section[@name=\'component\']/')
Helper wrapper method for getActionsFromFile
boolean|array
getActionsFromData(
string|SimpleXMLElement $data,
string $xpath = '/access/section[@name=\'component\']/')
Helper wrapper method for getActionsFromData