public function __construct($db_field, $name, $label)
 {
     $this->db_field = $db_field;
     $form_field_class = $this->get_form_field_class();
     $field = new $form_field_class($name, $label);
     parent::__construct($name, $field);
 }
 public function __construct($db_field, $name, $label, $lower_bound = self::NOT_BOUNDED, $upper_bound = self::NOT_BOUNDED)
 {
     $this->db_field = $db_field;
     $this->lower_bound = $lower_bound;
     $this->upper_bound = $upper_bound;
     $field = new FormFieldTextEditor($name, $label, '', array('size' => 5));
     parent::__construct($name, $field);
 }
 /**
  * {@inheritdoc}
  */
 protected function set_value($value)
 {
     foreach ($this->options as $option) {
         if ($option->get_raw_value() === $value) {
             parent::set_value($option);
             break;
         }
     }
 }
 public function __construct($name, $label, $match_regex = null)
 {
     $this->match_regex = $match_regex;
     $input_text = new FormFieldTextEditor($name, $label, '');
     parent::__construct($name, $input_text);
 }