API16

JHtmlList/specificordering

From Joomla! Documentation

< API16:JHtmlList
Revision as of 21:58, 13 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)

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[edit]

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

[<! removed edit link to red link >]

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

Syntax[edit]

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

Defined in[edit]

libraries/joomla/html/html/list.php

Importing[edit]

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

Source Body[edit]

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[edit]

<CodeExamplesForm />