QueryElement
Query Element Class.
| since |
1.0 |
|---|---|
| package |
Joomla Framework |
Methods
__clone
Method to provide basic copy support.
__clone() :
Any object pushed into the data of this class should have its own __clone() implementation. This method does not support copying objects in a multidimensional array.
| since |
1.0 |
|---|
Response
void
__construct
Constructor.
__construct( name, string[]|string elements, glue = ',') :
| since |
1.0 |
|---|
Arguments
- name
stringThe name of the element.- elements
array<string|int, string>|stringString or array.- glue
stringThe glue for elements.
Response
mixed
__toString
Magic function to convert the query element to a string.
__toString() :
| since |
1.0 |
|---|
Response
string
append
Appends element parts to the internal list.
append(string[]|string elements) :
| since |
1.0 |
|---|
Arguments
- elements
array<string|int, string>|stringString or array.
Response
void
getElements
Gets the elements of this element.
getElements() : string||string|int
| since |
1.0 |
|---|
Response
array<string|int, string>
getGlue
Gets the glue of this element.
getGlue() :
| since |
2.0.0 |
|---|
Response
stringGlue of the element.
getName
Gets the name of this element.
getName() :
| since |
1.7.0 |
|---|
Response
stringName of the element.
setName
Sets the name of this element.
setName( name) :
| since |
1.3.0 |
|---|
Arguments
- name
stringName of the element.
Response
$this
Properties
name
The name of the element.
| since |
1.0 |
|---|
Type(s)
string
elements
An array of elements.
| since |
1.0 |
|---|
Type(s)
array<string|int, string>
glue
Glue piece.
| since |
1.0 |
|---|
Type(s)
string