LimeSurvey API - Master branch

SurveyArchive
in package
implements CommandInterface Uses AuthPermissionTrait

Table of Contents

Interfaces

CommandInterface

Properties

$responseFactory  : ResponseFactory
$session  : CHttpSession
$survey  : Survey
$permissionModel  : Permission|null

Methods

__construct()  : mixed
Constructor
run()  : Response
Processes the request
setPermissionModel()  : void
getPermissionModel()  : Permission
hasGlobalPermission()  : Response
hasSurveyPermission()  : Response
processData()  : array<string|int, mixed>
Processes data and returns aggregate summary of the archives
ensurePermissions()  : Response|false
Ensure Permissions

Properties

Methods

hasGlobalPermission()

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

processData()

Processes data and returns aggregate summary of the archives

protected processData(Survey $survey, array<string|int, mixed> $rawData) : array<string|int, mixed>
Parameters
$survey : Survey
$rawData : array<string|int, mixed>
Return values
array<string|int, mixed>

ensurePermissions()

Ensure Permissions

private ensurePermissions(int $surveyId) : Response|false
Parameters
$surveyId : int
Return values
Response|false

        
On this page

Search results