API17

Difference between revisions of "JDatabase::getQuery"

From Joomla! Documentation

(Layout updates)
m (preparing for archive only)
 
(5 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.  
  
{{Description:JDatabase::getQuery}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JDatabase::getQuery|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDatabase::getQuery ($new=false)
+
public function getQuery ($new=false)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 20: Line 17:
 
|-
 
|-
 
|$new
 
|$new
|boolean
+
|
 
|false
 
|false
|False to return the last query set by setQuery, True to return a new  object.
+
|
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed The current value of the internal SQL variable or a new  object.
string The current value of the internal SQL variable
+
* '''Defined''' on line 1176 of libraries/joomla/database/database.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/database.php (line 602)
 
* see source code in [[jplatform:database/database.php#cl-602|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JDatabase::getQuery source code''' on [[jplatform:database/database.php#cl-1168|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JDatabase::getQuery|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JDatabase|JDatabase]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[JDatabase/11.1|JDatabase]]
+
* [[API17:JDatabase::getQuery|Other versions of JDatabase::getQuery]]
* [[JDatabase::getQuery|Other versions of this method]]
+
 
{{SeeAlso:JDatabase::getQuery}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JDatabase::getQuery
 
category=JDatabase::getQuery
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JDatabase]][[Category:JDatabase::getQuery]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:33, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JDatabase::getQuery[edit]

Description[edit]

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 Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]