JHtmlSelectTest::testGenericlist
Test the genericlist method.
Signature
public function testGenericlist(string
$expected,
[array
$data = null,
[string
$name = null,
[mixed
$attribs = null,
[string
$optKey = 'value',
[string
$optText = 'text',
[mixed
$selected = null,
[mixed
$idtag = false,
[boolean
$translate = false]]]]]]]] )
Parameters
-
$expected
- Expected generated HTML <select> string.
-
$data
- An array of objects, arrays, or scalars.
-
$name
- The value of the HTML name attribute.
-
$attribs
- Additional HTML attributes for the <select> tag. This
-
$optKey
- The name of the object variable for the option value. If
-
$optText
- The name of the object variable for the option text.
-
$selected
- The key that is selected (accepts an array or a string).
-
$idtag
- Value of the field id or null by default
-
$translate
- True to translate
Returns
- void