示例#1
0
文件: Input.php 项目: Kekos/booya
 protected function preRender($form_name)
 {
     if ($this->max_length !== null) {
         $this->setAttribute('maxlength', $this->max_length);
     }
     $template = parent::preRender($form_name);
     $template->set('type', $this->type);
     return $template;
 }
示例#2
0
文件: Form.php 项目: Kekos/booya
 public function appendField(Field $field)
 {
     $name = $field->getName();
     $this->fields[$name] = $field;
 }
示例#3
0
文件: Checkbox.php 项目: Kekos/booya
 protected function preRender($form_name)
 {
     $template = parent::preRender($form_name);
     $template->set('compare_value', $this->compare_value);
     return $template;
 }
示例#4
0
文件: Select.php 项目: Kekos/booya
 protected function preRender($form_name)
 {
     $template = parent::preRender($form_name);
     $template->set('options', $this->options);
     return $template;
 }