API17

JHtmlList::ordering: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:
Build the select list for Ordering derived from a query.  
Build the select list for Ordering derived from a query.  


{{subst:Description:JHtmlList::ordering}}
 


<source lang="php">
<source lang="php">
Line 64: Line 64:
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]]
* [[API17:JHtmlList::ordering|Other versions of JHtmlList::ordering]]
* [[API17:JHtmlList::ordering|Other versions of JHtmlList::ordering]]
{{subst:SeeAlso:JHtmlList::ordering}}
 


===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JHtmlList::ordering
category=JHtmlList::ordering
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*

Latest revision as of 03:13, 25 March 2017

Joomla 11.1 JHtmlList::ordering

Description

Build the select list for Ordering derived from a query.


public static function ordering (
        $name
        $query
        $attribs=null
        $selected=null
        $neworder=null
        $chop=null
)
Parameter Type Default Description
$name int $value The scalar value
$query string
$attribs string null HTML tag attributes
$selected int null $neworder 1 if new and first, -1 if new and last, 0 or null if existing item
$neworder string null $prefix An optional prefix for the task
$chop null
  • Returns string
  • Defined on line 143 of libraries/joomla/html/html/list.php
  • Since Joomla 11.1
  • Referenced by

See also


User contributed notes

Code Examples