Lines Matching defs:for
17 * @var array name value pairs for hidden values
94 * to FALSE. Please read the section on Booleans for more information. Use the === operator for testing the
125 * @param string $type Element type to look for.
132 for ($pos = $offset; $pos < $len; $pos++) {
151 for ($pos = $offset; $pos < $len; $pos++) {
167 * @param int $pos 0-based position in the form, -1 for at the end
291 * Adds a simple button, escapes the content for you
304 * Adds a simple button, allows HTML for content
317 * Adds a label referencing another input element, escapes the label for you
320 * @param string $for
324 public function addLabel($label, $for = '', $pos = -1)
326 return $this->addLabelHTML(hsc($label), $for, $pos);
330 * Adds a label referencing another input element, allows HTML for content
333 * @param string|Element $for
337 public function addLabelHTML($content, $for = '', $pos = -1)
341 if (is_a($for, '\dokuwiki\Form\Element')) {
342 /** @var Element $for */
343 $for = $for->id();
345 $for = (string) $for;
346 if ($for !== '') {
347 $element->attr('for', $for);
439 for ($pos = 0; $pos < $len; $pos++) {