class JDatabaseQueryElement

Query Element Class.

Methods

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

Constructor.

string
__toString()

Magic function to convert the query element to a string.

void
append( mixed $elements)

Appends element parts to the internal list.

array
getElements()

Gets the elements of this element.

setName( string $name)

Sets the name of this element.

void
__clone()

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

Details

__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.

string __toString()

Magic function to convert the query element to a string.

Return Value

string

void append( mixed $elements)

Appends element parts to the internal list.

Parameters

mixed $elements String or array.

Return Value

void

array getElements()

Gets the elements of this element.

Return Value

array

JDatabaseQueryElement setName( string $name)

Sets the name of this element.

Parameters

string $name Name of the element.

Return Value

JDatabaseQueryElement Returns this object to allow chaining.

void __clone()

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

Return Value

void