FieldsFactory
in package
Tags
Table of Contents
- createField() : AbstractField
- createFields() : array<string|int, AbstractField>
- filterTranslatable() : array<string|int, mixed>
- getClass() : string
Methods
createField()
public
static createField(string $inputName, array<string|int, mixed> $args[, mixed $value = null ]) : AbstractField
Parameters
- $inputName : string
-
Prefixed name.
- $args : array<string|int, mixed>
- $value : mixed = null
-
Optional. Null by default.
Tags
Return values
AbstractField —createFields()
public
static createFields(array<string|int, mixed> $fields[, array<string|int, mixed> $values = [] ]) : array<string|int, AbstractField>
Parameters
- $fields : array<string|int, mixed>
-
[Field name => Field args]
- $values : array<string|int, mixed> = []
-
[Field name => Field value]. Optional.
Tags
Return values
array<string|int, AbstractField> —filterTranslatable()
public
static filterTranslatable(array<string|int, mixed> $fields) : array<string|int, mixed>
Parameters
- $fields : array<string|int, mixed>
-
[Field name => Field args]
Tags
Return values
array<string|int, mixed> —getClass()
public
static getClass(string $type) : string
Parameters
- $type : string
Tags
Return values
string —Field class to instantiate.