HTML_QuickForm_select::load()
HTML_QuickForm_select::load() -- Loads options from different types of data sources
概要
require_once 'HTML/QuickForm/select.php'; |
PEAR_Error HTML_QuickForm_select::load (mixed &$options [, mixed $param1 = NULL [, mixed $param2 = NULL [, mixed $param3 = NULL [, mixed $param4 = NULL]]]])
説明
This method is a simulated overloaded method. The arguments, other than the first are optional and only mean something depending on the type of the first argument.
If the first argument is an array then all arguments are passed in order to loadArray(). If the first argument is a DB_Result then all arguments are passed in order to loadDbResult(). If the first argument is a string or a DB connection then all arguments are passed in order to loadQuery().
パラメータ
- mixed
&$options
Options source currently supports assoc array or DB_result
- mixed
$param1
(optional) See function detail
- mixed
$param2
(optional) See function detail
- mixed
$param3
(optional) See function detail
- mixed
$param4
(optional) See function detail
返り値
returns TRUE on success
注意
since 1.1
この関数は、スタティックにコールする
ことはできません。