API16

API16:JHtmlList/specificordering

From Joomla! Documentation

Revision as of 22:50, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Deprecated1.6 Use JHtml::_('list.ordering') instead <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JHtmlList/specificordering|Edi...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

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

[Edit Descripton]

Template:Description:JHtmlList/specificordering

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);
}

[Edit See Also] Template:SeeAlso:JHtmlList/specificordering

Examples

<CodeExamplesForm />