class CollectionImplementation extends AbstractCollectionImplementation (View source)

deprecated since Neos 4.2 in favor of LoopImplementation

Render a Fusion collection of nodes

//tsPath collection *Collection //tsPath itemRenderer the TS object which is triggered for each element in the node collection

Properties

protected Runtime $runtime from  AbstractFusionObject
protected string $path

The Fusion path currently being rendered

from  AbstractFusionObject
protected string $fusionObjectName

Name of this Fusion object, like Neos.Neos:Text

from  AbstractFusionObject
protected array $tsValueCache from  AbstractFusionObject
protected int $numberOfRenderedNodes

The number of rendered nodes, filled only after evaluate() was called.

from  MapImplementation

Methods

__construct(Runtime $runtime, string $path, string $fusionObjectName)

Constructor

mixed
evaluate()

Evaluate the collection nodes

getRuntime()

Get the Fusion runtime this object was created in.

mixed
fusionValue(string $path)

Return the Fusion value relative to this Fusion object (with processors etc applied).

bool
offsetExists(mixed $offset)

Dummy implementation of ArrayAccess to allow this.XXX access in processors.

mixed
offsetGet(mixed $offset)

Dummy implementation of ArrayAccess to allow this.XXX access in processors.

void
offsetSet(mixed $offset, mixed $value)

Dummy implementation of ArrayAccess to allow this.XXX access in processors.

void
offsetUnset(mixed $offset)

Dummy implementation of ArrayAccess to allow this.XXX access in processors.

array
getItems()

No description

string
getItemName()

No description

string
getItemKey()

No description

string
getIterationName()

If set iteration data (index, cycle, isFirst, isLast) is available in context with the name given.

array
prepareIterationInformation(int $collectionCount)

No description

array
getCollection()

Render the array collection by triggering the itemRenderer for every element

array
evaluateAsArray()

Evaluate the collection nodes as array

string
getGlue()

Collections are always concatenated with an empty string

Details

__construct(Runtime $runtime, string $path, string $fusionObjectName)

Constructor

Parameters

Runtime $runtime
string $path
string $fusionObjectName

mixed evaluate()

Evaluate the collection nodes

Return Value

mixed

Runtime getRuntime()

Get the Fusion runtime this object was created in.

Return Value

Runtime

protected mixed fusionValue(string $path)

Return the Fusion value relative to this Fusion object (with processors etc applied).

Note that subsequent calls of tsValue() with the same Fusion path will return the same values since the first evaluated value will be cached in memory.

Parameters

string $path

Return Value

mixed

bool offsetExists(mixed $offset)

Dummy implementation of ArrayAccess to allow this.XXX access in processors.

Parameters

mixed $offset

Return Value

bool

mixed offsetGet(mixed $offset)

Dummy implementation of ArrayAccess to allow this.XXX access in processors.

Parameters

mixed $offset

Return Value

mixed

void offsetSet(mixed $offset, mixed $value)

Dummy implementation of ArrayAccess to allow this.XXX access in processors.

Parameters

mixed $offset
mixed $value

Return Value

void

void offsetUnset(mixed $offset)

Dummy implementation of ArrayAccess to allow this.XXX access in processors.

Parameters

mixed $offset

Return Value

void

array getItems()

No description

Return Value

array

string getItemName()

No description

Return Value

string

string getItemKey()

No description

Return Value

string

string getIterationName()

If set iteration data (index, cycle, isFirst, isLast) is available in context with the name given.

Return Value

string

protected array prepareIterationInformation(int $collectionCount)

No description

Parameters

int $collectionCount

Return Value

array

array getCollection()

Render the array collection by triggering the itemRenderer for every element

Return Value

array

array evaluateAsArray()

Evaluate the collection nodes as array

Return Value

array

Exceptions

Exception

string getGlue()

Collections are always concatenated with an empty string

Return Value

string