API16:JDatabaseQuery/group
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Description:JDatabaseQuery/group
Contents |
Syntax
group($columns)
| Parameter Name | Default Value | Description |
|---|---|---|
| $columns | A string or array of ordering columns |
Defined in
libraries/joomla/database/databasequery.php
Importing
jimport( 'joomla.database.databasequery' );
Source Body
public function group($columns) { if (is_null($this->_group)) { $this->_group = new JDatabaseQueryElement('GROUP BY', $columns); } else { $this->_group->append($columns); } return $this; }
[Edit See Also] SeeAlso:JDatabaseQuery/group
Examples
<CodeExamplesForm />
