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

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTML_QuickForm_select::setSize()

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

Synopsis

require_once 'HTML/QuickForm/select.php';

void HTML_QuickForm_select::setSize ( int $size )

Description

This package is not documented yet.

Parameter

integer $size

select フィールドのサイズ。

Throws

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

See

getSize() も参照ください。

Note

since 1.0

This function can not be called statically.

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

Download Documentation Last updated: Sun, 21 Jun 2009
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