API17

JDatabaseQuery::order: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Layout updates
Doxiki2 (talk | contribs)
Updated to r1448:247ba8d88526
Line 2: Line 2:
=={{JVer|11.1}} JDatabaseQuery::order==
=={{JVer|11.1}} JDatabaseQuery::order==
===Description===
===Description===
Add a ordering column to the ORDER clause of the query.
 


{{Description:JDatabaseQuery::order}}
{{Description:JDatabaseQuery::order}}
Line 8: Line 8:
<nowiki>[</nowiki>[[Description:JDatabaseQuery::order|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[</nowiki>[[Description:JDatabaseQuery::order|Edit Descripton]]<nowiki>]</nowiki>
</span>
</span>
===Since===
{{JVer|11.1 }}
===Synopsis===
<source lang="php">
<source lang="php">
public JDatabaseQuery::order ($columns)
public function order ($columns)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 27: Line 24:
|-
|-
|}
|}
===Returns===
* '''Returns''' Returns this object to allow chaining.
Returns this object to allow chaining.
* '''Defined''' on line 439 of libraries/joomla/database/databasequery.php
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/databasequery.php (line 528)
* see source code in [[jplatform:database/databasequery.php#cl-528|BitBucket]]
===Referenced by===
===See also===
===See also===
* {{JVer|11.1}} '''JDatabaseQuery::order source code''' on [[jplatform:database/databasequery.php#cl-431|BitBucket]]
* {{JVer|11.1}} Class [[JDatabaseQuery/11.1|JDatabaseQuery]]
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
* [[JDatabaseQuery::order|Other versions of JDatabaseQuery::order]]
{{SeeAlso:JDatabaseQuery::order}}
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JDatabaseQuery::order|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[</nowiki>[[SeeAlso:JDatabaseQuery::order|Edit See Also]]<nowiki>]</nowiki>
</span>
</span>
* [[JDatabaseQuery/11.1|JDatabaseQuery]]
===User contributed notes===
* [[JDatabaseQuery::order|Other versions of this method]]
{{SeeAlso:JDatabaseQuery::order}}
===Examples===
<CodeExamplesForm />
<CodeExamplesForm />
<dpl>
<dpl>
Line 48: Line 44:
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JDatabaseQuery]][[Category:JDatabaseQuery::order]]</noinclude>
<noinclude>[[Category:JDatabaseQuery]][[Category:JDatabaseQuery::order]]</noinclude>

Revision as of 01:35, 28 April 2011

Joomla 11.1 JDatabaseQuery::order

Description

Template:Description:JDatabaseQuery::order [Edit Descripton]

public function order ($columns)
Parameter Type Default Description
$columns mixed A string or array of ordering columns.
  • Returns Returns this object to allow chaining.
  • Defined on line 439 of libraries/joomla/database/databasequery.php
  • Since Joomla 11.1

See also

Template:SeeAlso:JDatabaseQuery::order [Edit See Also]

User contributed notes

<CodeExamplesForm />