API16:JHtmlList/category
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Deprecated
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
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
libraries/joomla/html/html/list.php
Importing
jimport( 'joomla.html.html.list' );
Source Body
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
<CodeExamplesForm />
