SurveyGroupList
in package
implements
CommandInterface
Uses
AuthPermissionTrait
Table of Contents
Interfaces
Properties
- $authSession : AuthSession
- $responseFactory : ResponseFactory
- $surveyGroup : SurveysGroups
- $transformerOutputSurveyGroup : TransformerOutputSurveyGroup
- $permissionModel : Permission|null
Methods
- __construct() : mixed
- Constructor
- run() : Response
- Run surveys group list command
- setPermissionModel() : void
- getPermissionModel() : Permission
- hasGlobalPermission() : Response
- hasSurveyPermission() : Response
Properties
$authSession
protected
AuthSession
$authSession
$responseFactory
protected
ResponseFactory
$responseFactory
$surveyGroup
protected
SurveysGroups
$surveyGroup
$transformerOutputSurveyGroup
protected
TransformerOutputSurveyGroup
$transformerOutputSurveyGroup
$permissionModel
private
Permission|null
$permissionModel
= null
Methods
__construct()
Constructor
public
__construct(SurveysGroups $surveyGroup, AuthSession $authSession, TransformerOutputSurveyGroup $transformerOutputSurveyGroup, ResponseFactory $responseFactory) : mixed
Parameters
- $surveyGroup : SurveysGroups
- $authSession : AuthSession
- $transformerOutputSurveyGroup : TransformerOutputSurveyGroup
- $responseFactory : ResponseFactory
run()
Run surveys group list command
public
run(Request $request) : Response
Parameters
- $request : Request
Return values
ResponsesetPermissionModel()
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