QueryElement

Query Element Class.

property-read

The name of the element.

An array of elements.

Glue piece.

since

1.0

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 = ',') 
since

1.0

Arguments

$name

stringThe name of the element.

$elements

mixedString or array.

$glue

stringThe glue for elements.

__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

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