$element->setOptions()
$element->setOptions() – Utility function equivilant to HTML_Select - loadArray **
Synopsis
$element->setOptions (
mixed $array
, boolean $noValue
= false
)
Description
Used with HTML Selects, to fill in the options available
Parameter
-
$array
the options to appear. -
$noValue
don't use the keys from the array sent as the value= part of the option tag.
Throws
throws no exceptions thrown
Note
This function can not be called statically.