Lines Matching defs:name

17  * Every pseudo-tag must have the key '_elem' set to the name of the element.
124 * Adds a name/value pair as a hidden field.
125 * The value of the field (but not the name) will be passed to
128 * @param string $name Field name.
133 public function addHidden($name, $value)
136 unset($this->_hidden[$name]);
138 $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));
343 * @param string $tag Tag name.
360 * @param string $tag Tag name.
377 * @param string $tag Tag name.
391 * a name of 'wikitext' and id 'wiki__text'. The text will
438 * @param string $name Name attribute of the input.
450 function form_makeField($type, $name, $value='', $label=null, $id='', $class='', $attrs=array()) {
451 if (is_null($label)) $label = $name;
453 'type'=>$type, 'id'=>$id, 'name'=>$name, 'value'=>$value);
467 * @param string $name
476 function form_makeFieldRight($type, $name, $value='', $label=null, $id='', $class='', $attrs=array()) {
477 if (is_null($label)) $label = $name;
479 'type'=>$type, 'id'=>$id, 'name'=>$name, 'value'=>$value);
491 * @param string $name
500 function form_makeTextField($name, $value='', $label=null, $id='', $class='', $attrs=array()) {
501 if (is_null($label)) $label = $name;
503 'id'=>$id, 'name'=>$name, 'value'=>$value, 'class'=>'edit');
516 * @param string $name
524 function form_makePasswordField($name, $label=null, $id='', $class='', $attrs=array()) {
525 if (is_null($label)) $label = $name;
527 'id'=>$id, 'name'=>$name, 'class'=>'edit');
539 * @param string $name
547 function form_makeFileField($name, $label=null, $id='', $class='', $attrs=array()) {
548 if (is_null($label)) $label = $name;
550 'id'=>$id, 'name'=>$name, 'class'=>'edit');
558 * If $value is an array, a hidden field with the same name and the value
564 * @param string $name
573 function form_makeCheckboxField($name, $value='1', $label=null, $id='', $class='', $attrs=array()) {
574 if (is_null($label)) $label = $name;
577 'id'=>$id, 'name'=>$name, 'value'=>$value);
589 * @param string $name
598 function form_makeRadioField($name, $value='1', $label=null, $id='', $class='', $attrs=array()) {
599 if (is_null($label)) $label = $name;
602 'id'=>$id, 'name'=>$name, 'value'=>$value);
618 * @param string $name Name attribute of the input.
630 function form_makeMenuField($name, $values, $selected='', $label=null, $id='', $class='', $attrs=array()) {
631 if (is_null($label)) $label = $name;
650 'id'=>$id, 'name'=>$name);
664 * @param string $name Name attribute of the input.
676 function form_makeListboxField($name, $values, $selected='', $label=null, $id='', $class='', $attrs=array()) {
677 if (is_null($label)) $label = $name;
702 'id'=>$id, 'name'=>$name);
710 * Requires '_tag' key with name of the tag.
726 * Requires '_tag' key with name of the tag.
742 * Requires '_tag' key with name of the tag.
790 * Uses only 'name' and 'value' attributes.
799 return '<input type="hidden" name="'.$attrs['name'].'" value="'. formText($attrs['value']) .'" />';
816 unset($attrs['name']);
818 return '<textarea name="wikitext" id="wiki__text" dir="auto" '
828 * If '_action' is set, the button name will be "do[_action]".
837 $p = (!empty($attrs['_action'])) ? 'name="do['.$attrs['_action'].']" ' : '';
979 * If value is an array, a hidden field with the same name and the value
995 echo '<input type="hidden" name="'. hsc($attrs['name']) .'"'