LimeSurvey API - Master branch

SurveyAnswerCache
in package

Table of Contents

Properties

$aids  : array<string|int, mixed>
$labels  : array<string|int, mixed>
$loaded  : bool

Methods

getAid()  : int|null
Get the answer ID for an answer.
getLabel()  : string|null
Get the translated label for an answer.
load()  : mixed
Load answer data for a survey into the cache.

Properties

$aids

private array<string|int, mixed> $aids = []

[qid][scaleId][code] => aid

$labels

private array<string|int, mixed> $labels = []

[qid][scaleId][code] => text

Methods

getAid()

Get the answer ID for an answer.

public getAid(int|string|null $qid, int $scaleId, mixed $code) : int|null
Parameters
$qid : int|string|null
$scaleId : int
$code : mixed
Return values
int|null

getLabel()

Get the translated label for an answer.

public getLabel(int|string|null $qid, int $scaleId, mixed $code) : string|null
Parameters
$qid : int|string|null
$scaleId : int
$code : mixed
Return values
string|null

load()

Load answer data for a survey into the cache.

public load(int $surveyId, string $language) : mixed
Parameters
$surveyId : int
$language : string

        
On this page

Search results