AuthPermissionTrait
Table of Contents
Properties
- $permissionModel : Permission|null
Methods
- setPermissionModel() : void
- getPermissionModel() : Permission
- hasGlobalPermission() : Response
- hasSurveyPermission() : Response
Properties
$permissionModel
private
Permission|null
$permissionModel
= null
Methods
setPermissionModel()
public
setPermissionModel(Permission $permissionModel) : void
Parameters
- $permissionModel : Permission
getPermissionModel()
protected
getPermissionModel() : Permission
Return values
PermissionhasGlobalPermission()
protected
hasGlobalPermission(string $sPermission, string $sCRUD[, int|null $iUserID = null ]) : Response
Parameters
- $sPermission : string
- $sCRUD : string
- $iUserID : int|null = null
Return values
Response —| boolean
hasSurveyPermission()
protected
hasSurveyPermission(int $iSurveyID, string $sPermission, string $sCRUD[, string|null $iUserID = null ]) : Response
Parameters
- $iSurveyID : int
- $sPermission : string
- $sCRUD : string
- $iUserID : string|null = null
Return values
Response —| boolean