Copied!

Form

Form.php : 13

Methods

public__construct()

Form.php : 33
public __construct([int|null $contentId = null ][, int|null $contentFieldId = null ][, string|null $languageCode = null ][, array<string|int, Field$fields = [] ])

Parameters

Name Type Default value Description
$contentId int|null null -
$contentFieldId int|null null -
$languageCode string|null null -
$fields array<string|int, Field> [] -

publicgetContentFieldId()

Form.php : 116
public getContentFieldId() : int|null

Return values

int|null

publicgetContentId()

Form.php : 100
public getContentId() : int|null

Return values

int|null

publicgetFieldById()

Form.php : 68
public getFieldById(string $id) : Field

Parameters

Name Type Default value Description
$id string - -

Return values

Field

Tags
Throws
FormFieldNotFoundException

publicgetFieldByIdentifier()

Form.php : 86
public getFieldByIdentifier(string $identifier) : Field

Parameters

Name Type Default value Description
$identifier string - -

Return values

Field

Tags
Throws
FormFieldNotFoundException

publicgetFields()

Form.php : 48
public getFields() : array<string|int, Field>

Return values

array<string|int, Field>

publicgetLanguageCode()

Form.php : 132
public getLanguageCode() : string|null

Return values

string|null

publicsetContentFieldId()

Form.php : 124
public setContentFieldId(int|null $contentFieldId) : void

Parameters

Name Type Default value Description
$contentFieldId int|null - -

publicsetContentId()

Form.php : 108
public setContentId(int|null $contentId) : void

Parameters

Name Type Default value Description
$contentId int|null - -

publicsetFields()

Form.php : 56
public setFields(array<string|int, Field$fields) : void

Parameters

Name Type Default value Description
$fields array<string|int, Field> - -

publicsetLanguageCode()

Form.php : 140
public setLanguageCode(string|null $languageCode) : void

Parameters

Name Type Default value Description
$languageCode string|null - -