class AssetCollectionIterator implements RecursiveIterator

Iterates over an asset collection.

The iterator is responsible for cascading filters and target URL patterns from parent to child assets.

Properties

private $assets
private $filters
private $vars
private $output
private $clones

Methods

__construct(AssetCollectionInterface $coll, SplObjectStorage $clones)

No description

current(bool $raw = false)

Returns a copy of the current asset with filters and a target URL applied.

key()

No description

next()

No description

rewind()

No description

valid()

No description

hasChildren()

No description

getChildren()

No description

removeDuplicateVar($name)

No description

Details

at line 36
__construct(AssetCollectionInterface $coll, SplObjectStorage $clones)

No description

Parameters

AssetCollectionInterface $coll
SplObjectStorage $clones

at line 59
AssetInterface current(bool $raw = false)

Returns a copy of the current asset with filters and a target URL applied.

Parameters

bool $raw

Returns the unmodified asset if true

Return Value

AssetInterface

at line 90
key()

No description

at line 95
next()

No description

at line 100
rewind()

No description

at line 105
valid()

No description

at line 110
hasChildren()

No description

at line 118
getChildren()

No description

at line 123
private removeDuplicateVar($name)

No description

Parameters

$name