Lines Matching defs:name
17 * @var array name value pairs for hidden values
68 * @param string $name
72 public function setHiddenField($name, $value)
74 $this->hidden[$name] = $value;
143 * @param string $name Name of the attribute
148 public function findPositionByAttribute($name, $value, $offset = 0)
152 if ($this->elements[$pos]->attr($name) == $value) {
214 * @param string $name
219 public function addTextInput($name, $label = '', $pos = -1)
221 return $this->addElement(new InputElement('text', $name, $label), $pos);
227 * @param string $name
232 public function addPasswordInput($name, $label = '', $pos = -1)
234 return $this->addElement(new InputElement('password', $name, $label), $pos);
240 * @param string $name
245 public function addRadioButton($name, $label = '', $pos = -1)
247 return $this->addElement(new CheckableElement('radio', $name, $label), $pos);
253 * @param string $name
258 public function addCheckbox($name, $label = '', $pos = -1)
260 return $this->addElement(new CheckableElement('checkbox', $name, $label), $pos);
266 * @param string $name
272 public function addDropdown($name, $options, $label = '', $pos = -1)
274 return $this->addElement(new DropdownElement($name, $options, $label), $pos);
280 * @param string $name
285 public function addTextarea($name, $label = '', $pos = -1)
287 return $this->addElement(new TextareaElement($name, $label), $pos);
293 * @param string $name
298 public function addButton($name, $content, $pos = -1)
300 return $this->addElement(new ButtonElement($name, hsc($content)), $pos);
306 * @param string $name
311 public function addButtonHTML($name, $html, $pos = -1)
313 return $this->addElement(new ButtonElement($name, $html), $pos);
472 * @param string $eventName (optional) name of the event: FORM_{$name}_OUTPUT
487 foreach ($this->hidden as $name => $value) {
488 $html .= '<input type="hidden" name="' . $name . '" value="' . formText($value) . '" />';