示例#1
0
 /**
  * Initialize options
  *
  * Several options need some extra checks or setup work, for these options
  * the setters are called.
  *
  * @return void
  */
 protected function init()
 {
     parent::init();
     foreach ($this->options as $name => $value) {
         switch ($name) {
             case 'set':
                 $this->setSet($value);
                 break;
         }
     }
 }
示例#2
0
 /**
  * Initialize options.
  *
  * Several options need some extra checks or setup work, for these options
  * the setters are called.
  */
 protected function init()
 {
     parent::init();
     foreach ($this->options as $name => $value) {
         switch ($name) {
             case 'include':
                 $this->setInclude($value);
                 break;
             case 'other':
                 $this->setOther($value);
                 break;
         }
     }
 }
示例#3
0
 /**
  * Initialize options.
  *
  * Several options need some extra checks or setup work, for these options
  * the setters are called.
  */
 protected function init()
 {
     parent::init();
     foreach ($this->options as $name => $value) {
         switch ($name) {
             case 'query':
                 if (!is_array($value)) {
                     $value = array(array('query' => $value));
                 }
                 $this->addQueries($value);
                 break;
         }
     }
 }