Lines Matching refs:text

389  * Create a form element for a textarea containing wiki text.
391 * a name of 'wikitext' and id 'wiki__text'. The text will
394 * @param string $text Text to fill the field with.
400 function form_makeWikiText($text, $attrs=array()) {
401 $elem = array('_elem'=>'wikitext', '_text'=>$text,
435 * The label text will be printed before the input.
461 * The label text will be printed after the input.
486 * Create a form element for a text input element with label.
610 * The list of values can be strings, arrays of (value,text),
619 * @param string[]|array[] $values The list of values can be strings, arrays of (value,text),
636 foreach ($values as $val => $text) {
637 $options[] = array($val, $text, (!is_null($selected) && $val==$selected));
643 @list($val, $text) = $val;
645 $text = null;
646 $options[] = array($val, $text, $val===$selected);
658 * The list of values can be strings, arrays of (value,text),
665 * @param string[]|array[] $values The list of values can be strings, arrays of (value,text),
687 foreach ($values as $val => $text) {
688 $options[] = array($val, $text, in_array($val,$selected));
694 @list($val, $text, $disabled) = $val;
696 $text = null;
698 $options[] = array($val, $text, in_array($val, $selected), $disabled);
806 * Requires '_text' with default text of the field.
894 * Print the HTML for a text input field.
911 $s .= '<input type="text" '. buildAttributes($attrs,true) .' /></label>';
1036 * _options : Array of (value,text,selected) for the menu.
1060 @list($value,$text,$select) = $attrs['_options'][$n];
1062 if (!is_null($text))
1065 $text = $value;
1070 $s .= '<option'.$p.'>'. formText($text) .'</option>';
1085 * _options : Array of (value,text,selected) for the list.
1104 @list($value, $text, $select, $disabled) = $opt;
1106 if (is_null($text)) $text = $value;
1110 $s .= '<option'.$p.'>'. formText($text) .'</option>';