Copied!

ItemListInterface

ItemListInterface.php : 17
Extends Traversable, Countable
Tags
Extends

Traversable<\Ibexa\Contracts\Personalization\Value\ItemInterface>

Methods

publicfilter()

ItemListInterface.php : 31

Returns a new ItemInterface collection containing matched elements.

public filter(callable $predicate) : self

Parameters

Name Type Default value Description
$predicate callable - -

Return values

self

publicfirst()

ItemListInterface.php : 41
public first() : ItemInterface

Return values

ItemInterface

Tags
Throws
OutOfBoundsException

publicget()

ItemListInterface.php : 22
public get(string $identifier, string $language) : ItemInterface

Parameters

Name Type Default value Description
$identifier string - -
$language string - -

Return values

ItemInterface

Tags
Throws
ItemNotFoundException

publichas()

ItemListInterface.php : 24
public has(string $identifier, string $language) : bool

Parameters

Name Type Default value Description
$identifier string - -
$language string - -

Return values

bool

publicslice()

ItemListInterface.php : 36

Returns a new ItemInterface collection sliced of $length elements starting at position $offset.

public slice(int $offset[, int|null $length = null ]) : self

Parameters

Name Type Default value Description
$offset int - -
$length int|null null -

Return values

self