FormState

The current state of the form which is attached to the {@link FormRuntime} and saved in a session or the client.

Scope: frontend This class is NOT meant to be sub classed by developers.

Internal

Table of Contents

Constants

NOPAGE  = -1
Constant which means that we are currently not on any page; i.e. the form has never rendered before.

Properties

$formValues  : array<string|int, mixed>
$lastDisplayedPageIndex  : int
The last displayed page index

Methods

getFormValue()  : mixed
getFormValues()  : array<string|int, mixed>
getLastDisplayedPageIndex()  : int
isFormSubmitted()  : bool
setFormValue()  : mixed
setLastDisplayedPageIndex()  : mixed

Constants

NOPAGE

Constant which means that we are currently not on any page; i.e. the form has never rendered before.

public mixed NOPAGE = -1

Properties

$formValues

protected array<string|int, mixed> $formValues = []

$lastDisplayedPageIndex

The last displayed page index

protected int $lastDisplayedPageIndex = self::NOPAGE

Methods

getFormValue()

public getFormValue(string $propertyPath) : mixed
Parameters
$propertyPath : string

getFormValues()

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

getLastDisplayedPageIndex()

public getLastDisplayedPageIndex() : int
Return values
int

isFormSubmitted()

public isFormSubmitted() : bool
Return values
bool

FALSE if the form has never been submitted before, TRUE otherwise

setFormValue()

public setFormValue(string $propertyPath, mixed $value) : mixed
Parameters
$propertyPath : string
$value : mixed

setLastDisplayedPageIndex()

public setLastDisplayedPageIndex(int $lastDisplayedPageIndex) : mixed
Parameters
$lastDisplayedPageIndex : int

        
On this page

Search results