LimeSurvey API - Master branch

SurveyPatch
in package
implements CommandInterface Uses AuthPermissionTrait

Table of Contents

Interfaces

CommandInterface

Properties

$authSession  : AuthSession
$diFactory  : FactoryInterface
$responseFactory  : ResponseFactory
$permissionModel  : Permission|null

Methods

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

Properties

Methods

run()

Run survey patch command

public run(Request $request) : Response

Apply patch and respond with update patch to be applied to the source (if any).

Parameters
$request : Request
Return values
Response

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