class Condition extends Component (View source)

WHERE keyword parser.

Properties

static array $DELIMITERS

Logical operators that can be used to delimit expressions.

static array $ALLOWED_KEYWORDS

List of allowed reserved keywords in conditions.

array $identifiers

Identifiers recognized.

bool $isOperator

Whether this component is an operator.

string $expr

The condition.

Methods

static mixed
parse(Parser $parser, TokensList $list, array $options = [])

No description

static mixed
build(mixed $component, array $options = [])

No description

string
__toString()

Builds the string representation of a component of this type.

__construct(string $expr = null)

No description

Details

static mixed parse(Parser $parser, TokensList $list, array $options = [])

No description

Parameters

Parser $parser

the parser that serves as context

TokensList $list

the list of tokens that are being parsed

array $options

parameters for parsing

Return Value

mixed

static mixed build(mixed $component, array $options = [])

No description

Parameters

mixed $component

the component to be built

array $options

parameters for building

Return Value

mixed

string __toString()

Builds the string representation of a component of this type.

Return Value

string

See also

static::build

__construct(string $expr = null)

No description

Parameters

string $expr

the condition or the operator