LimeSurvey API - Master branch

PermissionInterface

Table of Contents

Constants

SINGLE_PERMISSIONS  = ['create', 'read', 'update', 'delete', 'import', 'export']
these are the single permissions that could be set to true or false in db for a permission like 'survey'

Methods

getMinimalPermissionRead()  : null|string
getOwnerId()  : int|null
getPermissionData()  : array<string|int, mixed>
getPrimaryKey()  : int|array<string|int, mixed>
hasPermission()  : bool

Constants

SINGLE_PERMISSIONS

these are the single permissions that could be set to true or false in db for a permission like 'survey'

public mixed SINGLE_PERMISSIONS = ['create', 'read', 'update', 'delete', 'import', 'export']

Methods

getMinimalPermissionRead()

public static getMinimalPermissionRead() : null|string
Return values
null|string

getPermissionData()

public static getPermissionData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPrimaryKey()

public getPrimaryKey() : int|array<string|int, mixed>
Return values
int|array<string|int, mixed>

hasPermission()

public hasPermission(mixed $sPermission[, mixed $sCRUD = 'read' ][, mixed $iUserID = null ]) : bool
Parameters
$sPermission : mixed
$sCRUD : mixed = 'read'
$iUserID : mixed = null
Return values
bool

        
On this page

Search results