HTML_QuickForm_select::setSelected() (Previous) (Next) HTML_QuickForm_submit クラス概要

View this page in Last updated: Sun, 05 Oct 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTML_QuickForm_select::setSize()

HTML_QuickForm_select::setSize() --  select フィールドのサイズを設定する ('multiple' select についてのみ適用される)

説明

このパッケージに関する文書は、未作成です。

パラメータ

integer $size

select フィールドのサイズ。

例外・エラー

例外はスローされません。

参照

getSize() も参照ください。

注意

since 1.0

この関数は、スタティックにコールする ことはできません。

HTML_QuickForm_select::setSelected() (Previous) (Next) HTML_QuickForm_submit クラス概要

Download Documentation Last updated: Sun, 05 Oct 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: user@example.com
demo code for a multiple select

$sel =& $form->addElement('select', 'person_id', 'PERSONS', $person_arr);
$sel->setMultiple(TRUE);
$sel->setSize(6);
$sel->setSelected('1,3'); //pre-selects $person_arr[1] and $person_arr[3]

//hope this helps