class QueryElement (View source)

Query Element Class.

Methods

__construct(string $name, mixed $elements, string $glue = ',')

Constructor.

string
__toString()

Magic function to convert the query element to a string.

string
toString()

toString

void
append(mixed $elements)

Appends element parts to the internal list.

string
getElements()

Gets the elements of this element.

void
__clone()

Method to provide deep copy support to nested objects and arrays when cloning.

string
getGlue()

Method to get property Glue

setGlue(string $glue)

Method to set property glue

string
getName()

Method to get property Name

setName(string $name)

Method to set property name

Details

at line line 49
__construct(string $name, mixed $elements, string $glue = ',')

Constructor.

Parameters

string $name The name of the element.
mixed $elements String or array.
string $glue The glue for elements.

at line line 65
string __toString()

Magic function to convert the query element to a string.

Return Value

string

at line line 75
string toString()

toString

Return Value

string

at line line 96
void append(mixed $elements)

Appends element parts to the internal list.

Parameters

mixed $elements String or array.

Return Value

void

at line line 115
string getElements()

Gets the elements of this element.

Return Value

string

at line line 128
void __clone()

Method to provide deep copy support to nested objects and arrays when cloning.

Return Value

void

at line line 144
string getGlue()

Method to get property Glue

Return Value

string

at line line 156
QueryElement setGlue(string $glue)

Method to set property glue

Parameters

string $glue

Return Value

QueryElement Return self to support chaining.

at line line 168
string getName()

Method to get property Name

Return Value

string

at line line 180
QueryElement setName(string $name)

Method to set property name

Parameters

string $name

Return Value

QueryElement Return self to support chaining.