Exemplo n.º 1
0
 public function input()
 {
     $val = func_get_arg(0);
     $input = parent::input();
     $input->addClass('radio');
     $input->attr('type', 'radio');
     $input->val($val);
     $input->attr('checked', $val == $this->value());
     return $input;
 }
Exemplo n.º 2
0
 public function input()
 {
     $val = func_get_arg(0);
     $input = parent::input();
     $input->addClass('radio');
     $input->attr('type', 'radio');
     $input->val($val);
     if ($this->readonly) {
         $input->attr('disabled', true);
     }
     $input->attr('checked', $val == $this->value());
     return $input;
 }