Ejemplo n.º 1
0
 protected function opHelper()
 {
     if (empty($this->value)) {
         return;
     }
     $this->helper->addFilter();
 }
Ejemplo n.º 2
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     if (!empty($this->definition['numeric'])) {
         $options['break_phrase'] = array('default' => FALSE);
     }
     $options['add_table'] = array('default' => FALSE);
     $options['require_value'] = array('default' => FALSE);
     if (isset($this->helper)) {
         $this->helper->defineOptions($options);
     } else {
         $helper = new ManyToOneHelper($this);
         $helper->defineOptions($options);
     }
     return $options;
 }