JDatabaseQuery::where: Difference between revisions
From Joomla! Documentation
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=== | ||
<source lang="php"> | <source lang="php"> | ||
public | public function where ( | ||
$conditions | |||
$glue='AND' | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 29: | Line 27: | ||
|string | |string | ||
|'AND' | |'AND' | ||
| | |$glue | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' Returns this object to allow chaining. | |||
Returns this object to allow chaining. | * '''Defined''' on line 414 of libraries/joomla/database/databasequery.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/database/databasequery.php | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JDatabaseQuery::where source code''' on [[jplatform:database/databasequery.php#cl-406|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JDatabaseQuery|JDatabaseQuery]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | |||
* | * [[API17:JDatabaseQuery::where|Other versions of JDatabaseQuery::where]] | ||
* [[JDatabaseQuery::where|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseQuery::where | category=JDatabaseQuery::where | ||
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:43, 25 March 2017
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

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