API17

JDatabaseQuery::where: 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 2: Line 2:
=={{JVer|11.1}} JDatabaseQuery::where==
=={{JVer|11.1}} JDatabaseQuery::where==
===Description===
===Description===
Add a single condition, or an array of conditions to the WHERE clause of the query.


{{Description:JDatabaseQuery::where}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JDatabaseQuery::where|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
===Since===
{{JVer|11.1 }}
===Synopsis===
<source lang="php">
<source lang="php">
public JDatabaseQuery->where ($conditions, $glue= 'AND')
public function where (
        $conditions
        $glue='AND'
)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 29: Line 27:
|string
|string
|'AND'
|'AND'
|The glue by which to join the conditions. Defaults to AND.
|$glue
|-
|-
|}
|}
===Returns===
* '''Returns''' Returns this object to allow chaining.
Returns this object to allow chaining.
* '''Defined''' on line 414 of libraries/joomla/database/databasequery.php
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/databasequery.php
===Referenced by===
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JDatabaseQuery::where source code''' on [[jplatform:database/databasequery.php#cl-406|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JDatabaseQuery::where|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JDatabaseQuery|JDatabaseQuery]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[JDatabaseQuery/11.1|JDatabaseQuery]]
* [[API17:JDatabaseQuery::where|Other versions of JDatabaseQuery::where]]
* [[JDatabaseQuery::where|Other versions of this method]]
 
{{SeeAlso:JDatabaseQuery::where}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JDatabaseQuery::where
category=JDatabaseQuery::where
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JDatabaseQuery]][[Category:JDatabaseQuery::where]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 02:43, 25 March 2017

Joomla 11.1 JDatabaseQuery::where

Description

public function where (
        $conditions
        $glue='AND'
)
Parameter Type Default Description
$conditions mixed A string or array of where conditions.
$glue string 'AND' $glue
  • Returns Returns this object to allow chaining.
  • Defined on line 414 of libraries/joomla/database/databasequery.php
  • Since Joomla 11.1

See also


User contributed notes

Code Examples