abstract class AbstractOperation implements OperationInterface (View source)

Convenience base class for FlowQuery Operations. You should set $shortName and optionally also $final and $priority when subclassing.

Properties

static protected string $shortName

The short name of the operation

static protected int $priority

The priority of operations. higher numbers override lower ones.

static protected bool $final

If true, the operation is final, i.e. directly executed.

Methods

static int
getPriority()

No description

static bool
isFinal()

No description

static string
getShortName()

No description

bool
canEvaluate(array $context)

This method is called to determine whether the operation can work with the $context objects. It can be implemented to implement runtime conditions.

Details

static int getPriority()

No description

Return Value

int

the priority of the operation

static bool isFinal()

No description

Return Value

bool

true if the operation is final, false otherwise

static string getShortName()

No description

Return Value

string

the short name of the operation

Exceptions

FlowQueryException

bool canEvaluate(array $context)

This method is called to determine whether the operation can work with the $context objects. It can be implemented to implement runtime conditions.

Parameters

array $context

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

Return Value

bool

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