depage-forms
v2.0.0
html forms made easy
Toggle main menu visibility
Loading...
Searching...
No Matches
Hidden.php
Go to the documentation of this file.
1
<?php
2
10
11
namespace
Depage\HtmlForm\Elements;
12
37
class
Hidden
extends
Text
38
{
44
public
function
__toString
(): string
45
{
46
$formName
= $this->htmlFormName();
47
$classes
= $this->
htmlClasses
();
48
$value
= $this->
htmlValue
();
49
$type
= strtolower($this->type);
50
51
return
"<input name=\"{$this->name}\" id=\"{$formName}-{$this->name}\" type=\"{$type}\" class=\"{$classes}\" value=\"{$value}\">\n"
;
52
}
53
}
54
55
/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
Depage\HtmlForm\Abstracts\Input\$value
$value
Input elements's value.
Definition
Input.php:124
Depage\HtmlForm\Abstracts\Input\$formName
$formName
Name of the parent HTML form.
Definition
Input.php:119
Depage\HtmlForm\Abstracts\Input\$classes
$classes
HTML classes attribute for rendering the input element.
Definition
Input.php:157
Depage\HtmlForm\Abstracts\Input\$type
$type
Input element type - HTML input type attribute.
Definition
Input.php:26
Depage\HtmlForm\Abstracts\Input\htmlValue
htmlValue()
Returns HTML-rendered element value.
Definition
Input.php:656
Depage\HtmlForm\Abstracts\Input\htmlClasses
htmlClasses()
Returns string of the elements' HTML-classes, separated by spaces.
Definition
Input.php:532
Depage\HtmlForm\Elements\Hidden
HTML hidden input type.
Definition
Hidden.php:38
Depage\HtmlForm\Elements\Hidden\__toString
__toString()
Renders element to HTML.
Definition
Hidden.php:44
Depage\HtmlForm\Elements\Text
HTML text input type.
Definition
Text.php:40
Elements
Hidden.php
Generated on
for depage-forms by
doxygen
1.18.0
For an overview of all docs, go to
docs.depage.net