Documentation

AssetCollectionFilterIterator extends RecursiveFilterIterator
in package

Asset collection filter iterator.

The filter iterator is responsible for de-duplication of leaf assets based on both strict equality and source URL.

Tags
author

Kris Wallsmith kris.wallsmith@gmail.com

Table of Contents

$sources  : mixed
$visited  : mixed
__construct()  : mixed
Constructor.
accept()  : bool
Determines whether the current asset is a duplicate.
getChildren()  : mixed
Passes visited objects and source URLs to the child iterator.

Properties

Methods

__construct()

Constructor.

public __construct(AssetCollectionIterator $iterator[, array<string|int, mixed> $visited = array() ][, array<string|int, mixed> $sources = array() ]) : mixed
Parameters
$iterator : AssetCollectionIterator

The inner iterator

$visited : array<string|int, mixed> = array()

An array of visited asset objects

$sources : array<string|int, mixed> = array()

An array of visited source strings

Return values
mixed —

accept()

Determines whether the current asset is a duplicate.

public accept() : bool

De-duplication is performed based on either strict equality or by matching sources.

Return values
bool —

Returns true if we have not seen this asset yet

getChildren()

Passes visited objects and source URLs to the child iterator.

public getChildren() : mixed
Return values
mixed —

Search results