Difference between revisions of "JHtmlList/specificordering"
From Joomla! Documentation
< API16:JHtmlList
(New page: ===Description===
Deprecated1.6 Use JHtml::_('list.ordering') instead
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JHtmlList/specificordering|Edi...) |
m (removing red link to edit, no existant pages) |
||
Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Syntax=== | ===Syntax=== | ||
Line 61: | Line 61: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Examples=== | ===Examples=== | ||
Line 76: | Line 76: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
+ | [[Category:Archived pages API16]] |
Revision as of 21:58, 13 May 2013
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 />