LimeSurvey API - Master branch

FormExtensionService
in package

Table of Contents

Properties

$inputs  : array<string, array<string|int, RawHtmlInput|BaseInput>>

Methods

add()  : void
applySave()  : bool
Apply all save-functions for all inputs for this $position (including all tabs).
getAll()  : array<string|int, mixed>
Used by widget to render all inputs for a certain position.
init()  : void
getAllForPosition()  : array<string|int, BaseInput|RawHtmlInput>
Get all tabs for a position
validatePosition()  : bool
Returns false if position is not yet supported by LS.

Properties

Methods

applySave()

Apply all save-functions for all inputs for this $position (including all tabs).

public applySave(string $position, CHttpRequest $request) : bool

Returns true if all save was successful; else false Will add warning flash messages for each failed input save.

Parameters
$position : string
$request : CHttpRequest
Return values
bool

getAll()

Used by widget to render all inputs for a certain position.

public getAll(string $position) : array<string|int, mixed>
Parameters
$position : string
Return values
array<string|int, mixed>

validatePosition()

Returns false if position is not yet supported by LS.

private validatePosition(string $position) : bool

This works as a allowlist of supported forms.

Parameters
$position : string
Return values
bool

        
On this page

Search results