Exemplo n.º 1
0
 /**
  * Loads options from different types of data sources
  *
  * This method overloaded parent method of select element, to allow
  * loading options with fancy attributes.
  *
  * @param mixed &$options Options source currently supports assoc array or DB_result
  * @param mixed $param1   (optional) See function detail
  * @param mixed $param2   (optional) See function detail
  * @param mixed $param3   (optional) See function detail
  * @param mixed $param4   (optional) See function detail
  *
  * @access     public
  * @since      version 1.5.0 (2009-02-15)
  * @return     PEAR_Error|NULL on error and TRUE on success
  * @throws     PEAR_Error
  * @see        loadArray()
  */
 function load(&$options, $param1 = null, $param2 = null, $param3 = null, $param4 = null)
 {
     if (is_array($options)) {
         $ret = $this->loadArray($options, $param1);
     } else {
         $ret = parent::load($options, $param1, $param2, $param3, $param4);
     }
     return $ret;
 }