Actions

API16

JHtmlList/specificordering

From Joomla! Documentation

< API16:JHtmlList
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.

Contents

Description

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

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />