API16

JHtmlList/specificordering: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 62: Line 62:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=specificordering
  category=specificordering
  category=JHtmlList
  category=JHtmlList
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:46, 25 March 2017

Description

Deprecated1.6 Use JHtml::_('list.ordering') instead


<! removed transcluded page call, red link never existed >

Syntax

static specificordering($value, $id, $query, $neworder=0)
Parameter Name Default Value Description
$value
$id
$query
$neworder 0

Defined in

libraries/joomla/html/html/list.php

Importing

jimport( 'joomla.html.html.list' );

Source Body

public static function specificordering($value, $id, $query, $neworder = 0)
{
        if (is_object($value)) {
                $value = $value->ordering;
        }

        if ($id) {
                $neworder = 0;
        } else {
                if ($neworder) {
                        $neworder = 1;
                } else {
                        $neworder = -1;
                }
        }
        return JHtmlList::ordering('ordering', $query, '', $value, $neworder);
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples