Actions

API17

Difference between revisions of "JDatabaseQuery::set"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JDatabaseQuery::set==
 
=={{JVer|11.1}} JDatabaseQuery::set==
 
===Description===
 
===Description===
Add a single condition string, or an array of strings to the SET clause of the query.
+
 
  
 
{{Description:JDatabaseQuery::set}}
 
{{Description:JDatabaseQuery::set}}
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDatabaseQuery::set|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDatabaseQuery::set|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDatabaseQuery->set ($conditions, $glue=',')
+
public function set (
 +
        $conditions
 +
        $glue='
 +
        '
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 29: Line 30:
 
|string
 
|string
 
|','
 
|','
|The glue by which to join the condition strings. Defaults to ,.
+
|$glue
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' Returns this object to allow chaining.
Returns this object to allow chaining.
+
* '''Defined''' on line 405 of libraries/joomla/database/databasequery.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/databasequery.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDatabaseQuery::set source code''' on [[jplatform:database/databasequery.php#cl-397|BitBucket]]
 +
* {{JVer|11.1}} Class [[JDatabaseQuery/11.1|JDatabaseQuery]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
 +
* [[JDatabaseQuery::set|Other versions of JDatabaseQuery::set]]
 +
{{SeeAlso:JDatabaseQuery::set}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabaseQuery::set|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDatabaseQuery::set|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDatabaseQuery/11.1|JDatabaseQuery]]
+
===User contributed notes===
* [[JDatabaseQuery::set|Other versions of this method]]
+
{{SeeAlso:JDatabaseQuery::set}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 52: Line 53:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JDatabaseQuery]][[Category:JDatabaseQuery::set]]</noinclude>
 
<noinclude>[[Category:JDatabaseQuery]][[Category:JDatabaseQuery::set]]</noinclude>

Revision as of 20:35, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDatabaseQuery::set

Description

Description:JDatabaseQuery::set [Edit Descripton]

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

See also

SeeAlso:JDatabaseQuery::set [Edit See Also]

User contributed notes

<CodeExamplesForm />