selectTag
[[HtmlHelper]]::selectTag (
$fieldName,
$optionElements,
$selected = null,
$selectAttr = [[array]](),
$optionAttr = null,
$showEmpty = true,
$return = false
)
…フォーマットされたselect要素を返します。
Parameters:
string $fieldName : Name attribute of the SELECT
array $optionElements : Array of the OPTION elements (as 'value'=>'Text' pairs) to be used in the SELECT element
mixed $selected Selected option
array $selectAttr Array of
HTML options for the opening SELECT element
array $optionAttr Array of HTML options for the enclosed OPTION elements
boolean $show_empty : trueだったら、空のselect optionを表示。
boolean $return : Whether this method should return a value
Returns:
string Formatted SELECT element public
最終更新:2007年07月30日 18:55