protected function compute_options(array &$field_options)
 {
     foreach ($field_options as $attribute => $value) {
         $attribute = strtolower($attribute);
         switch ($attribute) {
             case 'max_input':
                 $this->max_input = $value;
                 unset($field_options['max_input']);
                 break;
         }
     }
     parent::compute_options($field_options);
 }
 protected function compute_options(array &$field_options)
 {
     foreach ($field_options as $attribute => $value) {
         $attribute = strtolower($attribute);
         switch ($attribute) {
             case 'max_size':
                 $this->max_size = $value;
                 unset($field_options['max_size']);
                 // TODO add max size constraint
                 break;
         }
     }
     parent::compute_options($field_options);
 }
 protected function compute_options(array &$field_options)
 {
     foreach ($field_options as $attribute => $value) {
         $attribute = strtolower($attribute);
         switch ($attribute) {
             case 'rows':
                 $this->rows = $value;
                 unset($field_options['rows']);
                 break;
             case 'cols':
                 $this->cols = $value;
                 unset($field_options['cols']);
                 break;
         }
     }
     parent::compute_options($field_options);
 }
 protected function compute_options(array &$field_options)
 {
     foreach ($field_options as $attribute => $value) {
         $attribute = strtolower($attribute);
         switch ($attribute) {
             case 'max_input':
                 $this->max_input = $value;
                 unset($field_options['max_input']);
                 break;
             case 'size':
                 $this->size = $value;
                 unset($field_options['size']);
                 break;
             case 'method':
                 $this->method = $value;
                 unset($field_options['method']);
                 break;
             case 'file':
                 $this->file = $value;
                 unset($field_options['file']);
                 break;
             case 'name_parameter':
                 $this->name_parameter = $value;
                 unset($field_options['name_parameter']);
                 break;
         }
     }
     parent::compute_options($field_options);
 }