Lines Matching +full:- +full:- +full:name
8 * For Radio- and Checkboxes
16 * @param string $name The name of this form element
19 public function __construct($type, $name, $label) argument
21 parent::__construct($type, $name, $label);
23 $this->attr('value', 1);
32 [$name, $key] = $this->getInputName();
33 $myvalue = $this->val();
35 if (!$INPUT->has($name)) return;
38 // no key - single value
39 $value = $INPUT->str($name);
41 $this->attr('checked', 'checked');
43 $this->rmattr('checked');
47 $input = $INPUT->arr($name);
49 $this->rmattr('checked');
58 $this->attr('checked', 'checked');
73 if ($this->label) {
74 return '<label ' . buildAttributes($this->label->attrs()) . '>' . DOKU_LF
75 . $this->mainElementHTML() . DOKU_LF
76 . '<span>' . $this->label->val() . '</span>' . DOKU_LF
79 return $this->mainElementHTML();