LimeSurvey API - Master branch

SurveyLogic
in package
implements CommandInterface Uses AuthPermissionTrait

API Command to retrieve the survey logic overview as rendered HTML.

Will be reworked to return proper json output once design is ready for it.

Table of Contents

Interfaces

CommandInterface

Constants

ERROR_SURVEY_NOT_FOUND  = 'SURVEY_NOT_FOUND'
Error code returned when the requested survey does not exist.

Properties

$permission  : Permission
$responseFactory  : ResponseFactory
$survey  : Survey
$permissionModel  : Permission|null

Methods

__construct()  : mixed
Constructor
run()  : Response
Run survey logic command
setPermissionModel()  : void
getPermissionModel()  : Permission
hasGlobalPermission()  : Response
hasSurveyPermission()  : Response

Constants

ERROR_SURVEY_NOT_FOUND

Error code returned when the requested survey does not exist.

public mixed ERROR_SURVEY_NOT_FOUND = 'SURVEY_NOT_FOUND'

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


        
On this page

Search results