FieldCollection
in package
implements
CollectionInterface
FinalYes
Tags
Table of Contents
Interfaces
Properties
Methods
- __clone() : mixed
- count() : int
- first() : FieldDto|null
- get() : FieldDto|null
- getByProperty() : FieldDto|null
- It returns the first field associated to the given property or null if none found.
- getIterator() : ArrayIterator<string|int, FieldDto>
- isEmpty() : bool
- new() : self
- offsetExists() : bool
- offsetGet() : FieldDto
- offsetSet() : void
- offsetUnset() : void
- prepend() : void
- set() : void
- unset() : void
- __construct() : mixed
- processFields() : array<string|int, FieldDto>
Properties
$fields
private
array<string|int, FieldDto>
$fields
Methods
__clone()
public
__clone() : mixed
count()
public
count() : int
Return values
intfirst()
public
first() : FieldDto|null
Return values
FieldDto|nullget()
public
get(string $fieldUniqueId) : FieldDto|null
Parameters
- $fieldUniqueId : string
Return values
FieldDto|nullgetByProperty()
It returns the first field associated to the given property or null if none found.
public
getByProperty(string $propertyName) : FieldDto|null
Some pages (index/detail) can render the same field more than once. In those cases, this method always returns the first field occurrence.
Parameters
- $propertyName : string
Return values
FieldDto|nullgetIterator()
public
getIterator() : ArrayIterator<string|int, FieldDto>
Return values
ArrayIterator<string|int, FieldDto>isEmpty()
public
isEmpty() : bool
Return values
boolnew()
public
static new(array<string|int, FieldInterface>|array<string|int, string> $fields) : self
Parameters
- $fields : array<string|int, FieldInterface>|array<string|int, string>
Return values
selfoffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : FieldDto
Parameters
- $offset : mixed
Return values
FieldDtooffsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
prepend()
public
prepend(FieldDto $newField) : void
Parameters
- $newField : FieldDto
set()
public
set(FieldDto $newOrUpdatedField) : void
Parameters
- $newOrUpdatedField : FieldDto
unset()
public
unset(FieldDto $removedField) : void
Parameters
- $removedField : FieldDto
__construct()
private
__construct(array<string|int, FieldInterface>|array<string|int, string> $fields) : mixed
Parameters
- $fields : array<string|int, FieldInterface>|array<string|int, string>
processFields()
private
processFields(array<string|int, FieldInterface>|array<string|int, string> $fields) : array<string|int, FieldDto>
Parameters
- $fields : array<string|int, FieldInterface>|array<string|int, string>