Exemplo n.º 1
0
 function construct_after()
 {
     parent::construct_after();
     $vf = $this->get_value();
     $class = $this->control_options->class;
     if (!empty($vf['wysiwyg'])) {
         $this->control_options->class = array_merge($class, array('wysiwyg'));
     }
 }
Exemplo n.º 2
0
 function construct_after()
 {
     parent::construct_after();
     $value = ($v = $this->get_value()) && !empty($v['options']) ? $v['options'] : false;
     $select_options = !empty($value) ? explode("\r", $value) : false;
     if (!empty($select_options)) {
         array_unshift($select_options, '@');
     }
     unset($select_options[0]);
     // key shift
     $this->select_options = $select_options;
 }
Exemplo n.º 3
0
 function construct_after()
 {
     parent::construct_after();
     $this->control_options->class = array_merge($this->control_options->class, array('datetime'));
     $this->control_options->set('rules.number', true);
 }