class NextUntilOperation extends AbstractOperation (View source)

"nextUntil" operation working on ContentRepository nodes. It iterates over all context elements and returns each following sibling until the matching sibling is found.

If an optional filter expression is provided as a second argument, it only returns the nodes matching the given expression.

Properties

static protected string $shortName {@inheritdoc}
static protected int $priority {@inheritdoc}

Methods

bool
canEvaluate(array $context)

{@inheritdoc}

void
evaluate(FlowQuery $flowQuery, array $arguments)

{@inheritdoc}

getNodesUntil(array $nextNodes, TraversableNodeInterface $until)

No description

Details

bool canEvaluate(array $context)

{@inheritdoc}

Parameters

array $context

$context onto which this operation should be applied (array or array-like object)

Return Value

bool

true if the operation can be applied onto the $context, false otherwise

void evaluate(FlowQuery $flowQuery, array $arguments)

{@inheritdoc}

Parameters

FlowQuery $flowQuery

the FlowQuery object

array $arguments

the arguments for this operation

Return Value

void

Exceptions

Exception

protected TraversableNodeInterface[] getNextForNode(TraversableNodeInterface $contextNode)

No description

Parameters

TraversableNodeInterface $contextNode

The node for which the next nodes should be found

Return Value

TraversableNodeInterface[]

The following nodes of $contextNode

protected TraversableNodeInterface[] getNodesUntil(array $nextNodes, TraversableNodeInterface $until)

No description

Parameters

array $nextNodes

the remaining nodes

TraversableNodeInterface $until

Return Value

TraversableNodeInterface[]