Documentation

FieldCollection
in package
implements CollectionInterface

FinalYes
Tags
author

Javier Eguiluz javier.eguiluz@gmail.com

Table of Contents

Interfaces

CollectionInterface

Properties

$fields  : array<string|int, FieldDto>

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

Methods

getByProperty()

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|null

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

        
On this page

Search results