Actions

API16

JHtmlList/specificordering

< API16:JHtmlList

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

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


Advertisement