JHtmlList/category
From Joomla! Documentation
< API16:JHtmlListRevision as of 21:57, 13 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
Revision as of 21:57, 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]
Deprecated
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
static category($name, $extension, $selected=NULL, $javascript=NULL, $order=null, $size=1, $sel_cat=1)
Parameter Name | Default Value | Description |
---|---|---|
$name | ||
$extension | ||
$selected | NULL | |
$javascript | NULL | |
$order | null | |
$size | 1 | |
$sel_cat | 1 |
Defined in[edit]
libraries/joomla/html/html/list.php
Importing[edit]
jimport( 'joomla.html.html.list' );
Source Body[edit]
public static function category($name, $extension, $selected = NULL, $javascript = NULL, $order = null, $size = 1, $sel_cat = 1)
{
$categories = JHtml::_('category.options', $extension);
if ($sel_cat) {
array_unshift($categories, JHTML::_('select.option', '0', JText::_('JOption_Select_Category')));
}
$category = JHTML::_(
'select.genericlist',
$categories,
$name,
'class="inputbox" size="'. $size .'" '. $javascript,
'value', 'text',
$selected
);
return $category;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />