abstract class Component

A component (of a statement) is a part of a statement that is common to multiple query types.

Methods

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

Parses the tokens contained in the given list in the context of the given parser.

static string
build(mixed $component, array $options = array())

Builds the string representation of a component of this type.

string
__toString()

Builds the string representation of a component of this type.

Details

at line 36
static mixed parse(Parser $parser, TokensList $list, array $options = array())

Parses the tokens contained in the given list in the context of the given parser.

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

Exceptions

Exception not implemented yet

at line 59
static string build(mixed $component, array $options = array())

Builds the string representation of a component of this type.

In other words, this function represents the inverse function of static::parse.

Parameters

mixed $component the component to be built
array $options parameters for building

Return Value

string

Exceptions

Exception not implemented yet

at line 73
string __toString()

Builds the string representation of a component of this type.

Return Value

string

See also