class JHtmlList


Located at : UKNOWVA_ROOT/libraries/joomla/html/html/list.php

Utility class for creating different select lists

Methods

static string
accesslevel($row) deprecated

Get a grouped list of pre-Joomla 1.6 access levels

static 
images(string $name, string $active = NULL, string $javascript = NULL, string $directory = NULL, string $extensions = 'bmp|gif|jpg|png')

Build the select list to choose an image

static array
genericordering(string $sql, integer $chop = '30')

Returns an array of options

static string
specificordering(integer $value, integer $id, string $query, $neworder) deprecated

Build a select list with a specific ordering

static string
ordering($name, $query, $attribs = null, $selected = null, $neworder = null, $chop = null)

Build the select list for Ordering derived from a query

static string
users(string $name, string $active, integer $nouser, string $javascript = NULL, string $order = 'name', string $reg = 1)

Select list of active users

static array
positions(string $name, string $active = null, string $javascript = null, boolean $none = 1, boolean $center = 1, boolean $left = 1, boolean $right = 1, boolean $id = false)

Select list of positions - generally used for location of images

static 
category($name, $extension, $selected = NULL, $javascript = NULL, $order = null, $size = 1, $sel_cat = 1) deprecated

Crates a select list of categories

Details

at line 33
static string accesslevel($row) deprecated

deprecated 12.1 Use JHtml::_('access.assetgrouplist', 'access', $selected) instead

Get a grouped list of pre-Joomla 1.6 access levels

Parameters

$row

Return Value

string

See also

JHtmlAccess::assetgrouplist

at line 51
static images(string $name, string $active = NULL, string $javascript = NULL, string $directory = NULL, string $extensions = 'bmp|gif|jpg|png')

Build the select list to choose an image

Parameters

string $name The name of the field
string $active The selected item
string $javascript Alternative javascript
string $directory Directory the images are stored in
string $extensions Allowd extensions

at line 90
static array genericordering(string $sql, integer $chop = '30')

Returns an array of options

Parameters

string $sql SQL with 'ordering' AS value and 'name field' AS text
integer $chop The length of the truncated headline

Return Value

array An array of objects formatted for JHtml list processing

at line 141
static string specificordering(integer $value, integer $id, string $query, $neworder) deprecated

deprecated Use JHtml::_('list.ordering') instead

Build a select list with a specific ordering

Parameters

integer $value The scalar value
integer $id The id for an existing item in the list
string $query The query
$neworder 1 if new and first, -1 if new and last, 0 or null if existing item

Return Value

string Html for the ordered list

See also

JHtmlList::ordering

at line 171
static string ordering($name, $query, $attribs = null, $selected = null, $neworder = null, $chop = null)

Build the select list for Ordering derived from a query

Parameters

$name
$query
$attribs
$selected
$neworder
$chop

Return Value

string Html for the select list

at line 214
static string users(string $name, string $active, integer $nouser, string $javascript = NULL, string $order = 'name', string $reg = 1)

Select list of active users

Parameters

string $name The name of the field
string $active The active user
integer $nouser If set include an option to select no user
string $javascript Custom javascript
string $order Specify a field to order by
string $reg Deprecated Exludes users who are explictly in group 2.

Return Value

string The HTML for a list of users list of users

at line 263
static array positions(string $name, string $active = null, string $javascript = null, boolean $none = 1, boolean $center = 1, boolean $left = 1, boolean $right = 1, boolean $id = false)

Select list of positions - generally used for location of images

Parameters

string $name Name of the field
string $active The active value
string $javascript Alternative javascript
boolean $none Null if not assigned
boolean $center Null if not assigned
boolean $left Null if not assigned
boolean $right Null if not assigned
boolean $id Null if not assigned

Return Value

array The positions

at line 318
static category($name, $extension, $selected = NULL, $javascript = NULL, $order = null, $size = 1, $sel_cat = 1) deprecated

deprecated 12.1 Use JHtmlCategory instead

Crates a select list of categories

Parameters

$name
$extension
$selected
$javascript
$order
$size
$sel_cat

See also

JHtmlCategory