Lines Matching defs:name
18 * Every pseudo-tag must have the key '_elem' set to the name of the element.
125 * Adds a name/value pair as a hidden field.
126 * The value of the field (but not the name) will be passed to
129 * @param string $name Field name.
134 public function addHidden($name, $value)
137 unset($this->_hidden[$name]);
138 else $this->_hidden[$name] = $value;
232 * @param string $name Attribute name.
238 public function findElementByAttribute($name, $value)
241 if (is_array($elem) && isset($elem[$name]) && $elem[$name] == $value)
284 foreach ($this->_hidden as $name => $value)
285 $form .= form_hidden(array('name' => $name, 'value' => $value));
316 * This function adds a set of radio buttons to the form. If $_POST[$name]
319 * @param string $name The HTML field name
325 public function addRadioSet($name, $entries)
328 $value = (array_key_exists($INPUT->post->str($name), $entries)) ?
329 $INPUT->str($name) : key($entries);
332 $this->addElement(form_makeRadioField($name, $val, $cap, '', '', $data));
342 * @param string $tag Tag name.
360 * @param string $tag Tag name.
378 * @param string $tag Tag name.
393 * a name of 'wikitext' and id 'wiki__text'. The text will
442 * @param string $name Name attribute of the input.
454 function form_makeField($type, $name, $value = '', $label = null, $id = '', $class = '', $attrs = array())
456 if (is_null($label)) $label = $name;
458 'type' => $type, 'id' => $id, 'name' => $name, 'value' => $value);
472 * @param string $name
481 function form_makeFieldRight($type, $name, $value = '', $label = null, $id = '', $class = '', $attrs = array())
483 if (is_null($label)) $label = $name;
485 'type' => $type, 'id' => $id, 'name' => $name, 'value' => $value);
497 * @param string $name
506 function form_makeTextField($name, $value = '', $label = null, $id = '', $class = '', $attrs = array())
508 if (is_null($label)) $label = $name;
510 'id' => $id, 'name' => $name, 'value' => $value, 'class' => 'edit');
523 * @param string $name
531 function form_makePasswordField($name, $label = null, $id = '', $class = '', $attrs = array())
533 if (is_null($label)) $label = $name;
535 'id' => $id, 'name' => $name, 'class' => 'edit');
547 * @param string $name
555 function form_makeFileField($name, $label = null, $id = '', $class = '', $attrs = array())
557 if (is_null($label)) $label = $name;
559 'id' => $id, 'name' => $name, 'class' => 'edit');
567 * If $value is an array, a hidden field with the same name and the value
573 * @param string $name
582 function form_makeCheckboxField($name, $value = '1', $label = null, $id = '', $class = '', $attrs = array())
584 if (is_null($label)) $label = $name;
587 'id' => $id, 'name' => $name, 'value' => $value);
599 * @param string $name
608 function form_makeRadioField($name, $value = '1', $label = null, $id = '', $class = '', $attrs = array())
610 if (is_null($label)) $label = $name;
613 'id' => $id, 'name' => $name, 'value' => $value);
629 * @param string $name Name attribute of the input.
641 function form_makeMenuField($name, $values, $selected = '', $label = null, $id = '', $class = '', $attrs = array())
643 if (is_null($label)) $label = $name;
661 'id' => $id, 'name' => $name);
675 * @param string $name Name attribute of the input.
687 function form_makeListboxField($name, $values, $selected = '', $label = null, $id = '', $class = '', $attrs = array())
689 if (is_null($label)) $label = $name;
714 'id' => $id, 'name' => $name);
722 * Requires '_tag' key with name of the tag.
739 * Requires '_tag' key with name of the tag.
756 * Requires '_tag' key with name of the tag.
807 * Uses only 'name' and 'value' attributes.
817 return '<input type="hidden" name="' . $attrs['name'] . '" value="' . formText($attrs['value']) . '" />';
835 unset($attrs['name']);
837 return '<textarea name="wikitext" id="wiki__text" dir="auto" '
847 * If '_action' is set, the button name will be "do[_action]".
857 $p = (!empty($attrs['_action'])) ? 'name="do[' . $attrs['_action'] . ']" ' : '';
1004 * If value is an array, a hidden field with the same name and the value
1021 echo '<input type="hidden" name="' . hsc($attrs['name']) . '"'