class OrderKeyword extends Component

ORDER BY keyword parser.

Properties

Expression $expr The expression that is used for ordering.
string $type The order type.

Methods

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

No description

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

No description

string
__toString()

Builds the string representation of a component of this type.

from Component
__construct(Expression $expr = null, string $type = 'ASC')

Constructor.

Details

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

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

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

Parameters

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

Return Value

string

in Component at line 73
string __toString()

Builds the string representation of a component of this type.

Return Value

string

See also

at line 43
__construct(Expression $expr = null, string $type = 'ASC')

Constructor.

Parameters

Expression $expr the expression that we are sorting by
string $type the sorting type