Lines Matching defs:label
8 * Base class for all input elements. Uses a wrapping label when label
11 * @todo figure out how to make wrapping or related label configurable
19 protected $label;
29 * @param string $label The label text for this element (will be autoescaped)
31 public function __construct($type, $name, $label = '')
36 if ($label) $this->label = new LabelElement($label);
40 * Returns the label element if there's one set
46 return $this->label;
72 if ($this->label) $this->label->attr('for', $id);
86 if ($this->label) $this->label->addClass($class);
155 * The HTML representation of this element wrapped in a label
161 if ($this->label) {
162 return '<label ' . buildAttributes($this->label->attrs()) . '>' . DOKU_LF
163 . '<span>' . hsc($this->label->val()) . '</span>' . DOKU_LF
165 . '</label>';