Lines Matching defs:label
11 * @param string $label The label text for this element (will be autoescaped)
14 public function __construct($label, $options)
16 parent::__construct('optGroup', ['label' => $label]);
44 * Options can be given as associative array (value => label) or as an
45 * indexd array (label = value) or as an array of arrays. In the latter
48 * 'label' => option-label,
64 if (!array_key_exists('label', $val)) {
66 'If option is given as array, it has to have a "label"-key!'
80 $this->options[$val] = ['label' => (string)$val];
82 $this->options[$key] = ['label' => (string)$val];
95 if ($this->attributes['label'] === null) {
117 $html .= hsc($val['label']);