Documentation

PipeSelectorInterface extends ArraySelectorInterface

Interface for selector that applies a series of selectors sequentially to a source array view.

Table of Contents

Methods

compatibleWith()  : bool
Checks if the selector is compatible with the given view.
getValue()  : mixed
Return value of the selector.
select()  : ArrayViewInterface<string|int, T>
Selects elements from a source array view based on the selector criteria.

Methods

compatibleWith()

Checks if the selector is compatible with the given view.

public compatibleWith(ArrayViewInterface<string|int, T$view) : bool
Parameters
$view : ArrayViewInterface<string|int, T>

the view to check compatibility with.

Tags
template

T View elements type.

Return values
bool

true if the element is compatible, false otherwise

select()

Selects elements from a source array view based on the selector criteria.

public select(ArrayViewInterface<string|int, T$source[, bool|null $readonly = null ]) : ArrayViewInterface<string|int, T>
Parameters
$source : ArrayViewInterface<string|int, T>

The source array view to select elements from.

$readonly : bool|null = null

Flag indicating if the result view should be read-only.

Tags
template

T The type of elements in the source array view.

Return values
ArrayViewInterface<string|int, T>

A new view with selected elements from the source.


        
On this page

Search results