Copied!

Form

Form.php : 14

Methods

public__construct()

Form.php : 19
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 : 81
public getContentFieldId() : int|null

Return values

int|null

publicgetContentId()

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

Return values

int|null

publicgetFieldById()

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

Parameters

Name Type Default value Description
$id string - -

Return values

Field

Tags
Throws
FormFieldNotFoundException

publicgetFieldByIdentifier()

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

Parameters

Name Type Default value Description
$identifier string - -

Return values

Field

Tags
Throws
FormFieldNotFoundException

publicgetFields()

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

Return values

array<string|int, Field>

publicgetLanguageCode()

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

Return values

string|null

publicsetContentFieldId()

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

Parameters

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

publicsetContentId()

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

Parameters

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

publicsetFields()

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

Parameters

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

publicsetLanguageCode()

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

Parameters

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