JDatabase::getQuery: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Get the current or query, or new object. | Get the current or query, or new object. | ||
<source lang="php"> | <source lang="php"> | ||
public | public function getQuery ($new=false) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 20: | Line 17: | ||
|- | |- | ||
|$new | |$new | ||
| | | | ||
|false | |false | ||
| | | | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' mixed The current value of the internal SQL variable or a new object. | |||
* '''Defined''' on line 1176 of libraries/joomla/database/database.php | |||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/database/database.php | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JDatabase::getQuery source code''' on [[jplatform:database/database.php#cl-1168|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JDatabase|JDatabase]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | |||
* | * [[API17:JDatabase::getQuery|Other versions of JDatabase::getQuery]] | ||
* [[JDatabase::getQuery|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabase::getQuery | category=JDatabase::getQuery | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:33, 25 March 2017
JDatabase::getQuery
Description
Get the current or query, or new object.
public function getQuery ($new=false)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $new | false |
- Returns mixed The current value of the internal SQL variable or a new object.
- Defined on line 1176 of libraries/joomla/database/database.php
- Since

See also
JDatabase::getQuery source code on BitBucket
Class JDatabase
Subpackage Database- Other versions of JDatabase::getQuery
User contributed notes
Code Examples