JHtmlSelect::radiolist
Generates an HTML radio list.
Signature
public function radiolist(array
$data,
[string
$name = null,
[string
$attribs = null,
[mixed
$optKey = 'value',
[string
$optText = 'text',
[string
$selected = null,
[boolean
$idtag = false,
[boolean
$translate = false]]]]]]] )
Parameters
-
$data
- An array of objects
-
$name
- The value of the HTML name attribute
-
$attribs
- Additional HTML attributes for the <select> tag
-
$optKey
- The key that is selected
-
$optText
- The name of the object variable for the option value
-
$selected
- The name of the object variable for the option text
-
$idtag
- Value of the field id or null by default
-
$translate
- True if options will be translated
Returns
- string
- HTML for the select list