JHtmlSelect
class JHtmlSelect
Utility class for creating HTML select lists
Methods
Generates a yes/no radio list.
Generates an HTML selection list.
Method to build a list with suggestions
Generates a grouped HTML selection list from nested arrays.
Generates a selection list of integers.
Create a placeholder for an option group.
Create an object that represents an option in an option list.
Generates the option tags for an HTML select list (with no select tag surrounding the options).
Generates an HTML radio list.
Details
static
string
booleanlist(
string $name,
array $attribs = array(),
string $selected = null,
string $yes = 'JYES',
string $no = 'JNO',
mixed $id = false)
Generates a yes/no radio list.
static
string
genericlist(
array $data,
string $name,
mixed $attribs = null,
string $optKey = 'value',
string $optText = 'text',
mixed $selected = null,
mixed $idtag = false,
boolean $translate = false)
Generates an HTML selection list.
static
string
suggestionlist(
array $data,
string $optKey = 'value',
string $optText = 'text',
mixed $idtag = null,
boolean $translate = false)
Method to build a list with suggestions
static
string
groupedlist(
array $data,
string $name,
array $options = array())
Generates a grouped HTML selection list from nested arrays.
static
string
integerlist(
integer $start,
integer $end,
integer $inc,
string $name,
mixed $attribs = null,
mixed $selected = null,
string $format = '')
Generates a selection list of integers.
static
stdClass
optgroup(
string $text,
string $optKey = 'value',
string $optText = 'text')
Create a placeholder for an option group.
static
stdClass
option(
string $value,
string $text = '',
mixed $optKey = 'value',
string $optText = 'text',
boolean $disable = false)
Create an object that represents an option in an option list.