QueryElement

Query Element Class.

property-read string

The name of the element.

An array of elements.

Glue piece.

since

1.0

package

Joomla Framework

Methods

__clone

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

__clone() : void
since

1.0

__construct

Constructor.

__construct(string name, mixed elements, string glue = ',') : mixed
since

1.0

Arguments

name

stringThe name of the element.

elements

mixedString or array.

glue

stringThe glue for elements.

Response

mixed

__toString

Magic function to convert the query element to a string.

__toString() : string
since

1.0

Response

string

append

Appends element parts to the internal list.

append(mixed elements) : void
since

1.0

Arguments

elements

mixedString or array.

getElements

Gets the elements of this element.

getElements() : string
since

1.0

Response

string

getName

Gets the name of this element.

getName() : string
since

1.7.0

Response

stringName of the element.

setName

Sets the name of this element.

setName(string name) : \Joomla\Database\Query\QueryElement
since

1.3.0

Arguments

name

stringName of the element.

Response

\Joomla\Database\Query\QueryElementReturns this object to allow chaining.

Properties

name

The name of the element.

since

1.0

Type(s)

string

elements

An array of elements.

since

1.0

Type(s)

array

glue

Glue piece.

since

1.0

Type(s)

string

name

The name of the element.

Type(s)

string

elements

An array of elements.

Type(s)

array

glue

Glue piece.

Type(s)

string