Hidden.php
Go to the documentation of this file.
1<?php
11
36class Hidden extends Text
37{
43 public function __toString()
44 {
45 $formName = $this->htmlFormName();
46 $classes = $this->htmlClasses();
47 $value = $this->htmlValue();
48 $type = strtolower($this->type);
49
50 return "<input name=\"{$this->name}\" id=\"{$formName}-{$this->name}\" type=\"{$type}\" class=\"{$classes}\" value=\"{$value}\">\n";
51 }
52}
53
54/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
$value
Input elements's value.
Definition Input.php:123
$formName
Name of the parent HTML form.
Definition Input.php:118
$classes
HTML classes attribute for rendering the input element.
Definition Input.php:156
$type
Input element type - HTML input type attribute.
Definition Input.php:25
htmlValue()
Returns HTML-rendered element value.
Definition Input.php:647
htmlClasses()
Returns string of the elements' HTML-classes, separated by spaces.
Definition Input.php:531
HTML hidden input type.
Definition Hidden.php:37
__toString()
Renders element to HTML.
Definition Hidden.php:43
HTML text input type.
Definition Text.php:39
Classes for HTML input-elements.
Definition Address.php:9