FieldsFactory
in package

Tags
since
1.0

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
since
1.0
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
since
1.0
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
since
1.0
Return values
array<string|int, mixed>

getClass()

public static getClass(string $type) : string
Parameters
$type : string
Tags
since
1.0
Return values
string

Field class to instantiate.

Search results