コード例 #1
0
 function load(&$options, $param1 = NULL, $param2 = NULL, $param3 = NULL, $param4 = NULL)
 {
     switch (TRUE) {
         case $options instanceof Iterator:
             $arr = array();
             foreach ($options as $key => $val) {
                 $arr[$key] = $val;
             }
             return $this->loadArray($arr, $param1);
         default:
             return parent::load($options, $param1, $param2, $param3, $param4);
     }
 }
コード例 #2
0
 /**
  * Initialises form element with loaded options
  * @param string $elementName Element name
  * @param string $elementLabel Text for element's <label> tag
  * @param array $options Initially selected options within the list
  * @param array(string => string) $attributes HTML attributes for the element
  * @param int $sort Sort direction for select boxes (null for unsorted)
  * @version 2012100301
  * @since 2012100301
  */
 public function __construct($elementName = null, $elementLabel = null, $options = null, $attributes = null, $sort = SORT_ASC)
 {
     parent::HTML_QuickForm_advmultiselect($elementName, $elementLabel, $options, $attributes, $sort);
 }