API17

JDatabase::getQuery: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
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.  


{{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
===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 02:33, 25 March 2017

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

See also


User contributed notes

Code Examples