Lines Matching defs:text

391  * Create a form element for a textarea containing wiki text.
393 * a name of 'wikitext' and id 'wiki__text'. The text will
396 * @param string $text Text to fill the field with.
402 function form_makeWikiText($text, $attrs = array())
404 $elem = array('_elem' => 'wikitext', '_text' => $text,
439 * The label text will be printed before the input.
466 * The label text will be printed after the input.
492 * Create a form element for a text input element with label.
621 * The list of values can be strings, arrays of (value,text),
630 * @param string[]|array[] $values The list of values can be strings, arrays of (value,text),
648 foreach ($values as $val => $text) {
649 $options[] = array($val, $text, (!is_null($selected) && $val == $selected));
655 @list($val, $text) = $val;
656 else $text = null;
657 $options[] = array($val, $text, $val === $selected);
669 * The list of values can be strings, arrays of (value,text),
676 * @param string[]|array[] $values The list of values can be strings, arrays of (value,text),
699 foreach ($values as $val => $text) {
700 $options[] = array($val, $text, in_array($val, $selected));
706 @list($val, $text, $disabled) = $val;
708 $text = null;
710 $options[] = array($val, $text, in_array($val, $selected), $disabled);
824 * Requires '_text' with default text of the field.
916 * Print the HTML for a text input field.
934 $s .= '<input type="text" ' . buildAttributes($attrs, true) . ' /></label>';
1063 * _options : Array of (value,text,selected) for the menu.
1088 @list($value,$text,$select) = $attrs['_options'][$n];
1090 if (!is_null($text))
1092 else $text = $value;
1097 $s .= '<option' . $p . '>' . formText($text) . '</option>';
1112 * _options : Array of (value,text,selected) for the list.
1132 @list($value, $text, $select, $disabled) = $opt;
1134 if (is_null($text)) $text = $value;
1138 $s .= '<option' . $p . '>' . formText($text) . '</option>';