Config
Class Config
Table of Contents
Methods
- __construct() : mixed
- Config constructor.
- appendAgreement() : mixed
- appendField() : mixed
- clearFields() : mixed
- createById() : static
- Create config by form ID.
- getAgreements() : array<string|int, mixed>
- Get agreements.
- getCurrency() : array<string|int, mixed>
- Get Currency.
- getDependencies() : array<string|int, mixed>
- Get dependencies.
- getDescription() : string
- Get description.
- getDesign() : array<string|int, mixed>
- Get design.
- getFields() : array<string|int, mixed>
- Get fields.
- getViews() : array<string|int, mixed>
- Get views.
- isDisabled() : bool
- Return true if disabled.
- setDataFromArray() : mixed
- setEditMode() : $this
- Set edit mode.
- toArray() : array<string|int, mixed>
- Convert config to array.
Methods
__construct()
Config constructor.
public
__construct(Form $form) : mixed
Parameters
- $form : Form
appendAgreement()
public
appendAgreement(mixed $id) : mixed
Parameters
- $id : mixed
appendField()
public
appendField(array<string|int, mixed> $options) : mixed
Parameters
- $options : array<string|int, mixed>
clearFields()
public
clearFields() : mixed
createById()
Create config by form ID.
public
static createById(int $formId) : static
Parameters
- $formId : int
-
Form ID.
Return values
staticgetAgreements()
Get agreements.
public
getAgreements() : array<string|int, mixed>
Return values
array<string|int, mixed>getCurrency()
Get Currency.
public
getCurrency() : array<string|int, mixed>
Return values
array<string|int, mixed>getDependencies()
Get dependencies.
public
getDependencies() : array<string|int, mixed>
Return values
array<string|int, mixed>getDescription()
Get description.
public
getDescription() : string
Return values
stringgetDesign()
Get design.
public
getDesign() : array<string|int, mixed>
Return values
array<string|int, mixed>getFields()
Get fields.
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getViews()
Get views.
public
getViews() : array<string|int, mixed>
Return values
array<string|int, mixed>isDisabled()
Return true if disabled.
public
isDisabled() : bool
Return values
boolsetDataFromArray()
public
setDataFromArray(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
setEditMode()
Set edit mode.
public
setEditMode(bool $mode) : $this
Parameters
- $mode : bool
-
Mode.
Return values
$thistoArray()
Convert config to array.
public
toArray() : array<string|int, mixed>