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')); } }
function remove_after() { // remove file, if any $current = $this->get_fvalue(); if (!empty($current)) { $vf = $this->get_value(); $vf['type'] = $this->type_string; $this->get_container()->format_field_on_remove($vf, $current, $current); } return parent::remove_after(); }
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; }
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); }