depage-forms
v2.0.0
html forms made easy
Toggle main menu visibility
Loading...
Searching...
No Matches
Datetimelocal.php
Go to the documentation of this file.
1
<?php
2
10
11
namespace
Depage\HtmlForm\Elements;
12
18
class
Datetimelocal
extends
Text
19
{
27
public
function
__toString
(): string
28
{
29
$wrapperAttributes = $this->
htmlWrapperAttributes
();
30
$label
= $this->htmlLabel();
31
$marker
= $this->
htmlMarker
();
32
$value
= $this->
htmlValue
();
33
$inputAttributes = $this->
htmlInputAttributes
();
34
$errorMessage
= $this->
htmlErrorMessage
();
35
$helpMessage
= $this->
htmlHelpMessage
();
36
37
return
"<p {$wrapperAttributes}>"
.
38
"<label>"
.
39
"<span class=\"depage-label\">{$label}{$marker}</span>"
.
40
"<input name=\"{$this->name}\" type=\"datetime-local\"{$inputAttributes} value=\"{$value}\">"
.
41
"</label>"
.
42
$errorMessage
.
43
$helpMessage
.
44
"</p>\n"
;
45
}
46
}
47
48
/* 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\$label
$label
Input element - HTML label.
Definition
Input.php:37
Depage\HtmlForm\Abstracts\Input\$errorMessage
$errorMessage
Message that gets displayed in case of invalid input.
Definition
Input.php:218
Depage\HtmlForm\Abstracts\Input\htmlHelpMessage
htmlHelpMessage()
Returns HTML-rendered helpMessage.
Definition
Input.php:685
Depage\HtmlForm\Abstracts\Input\htmlWrapperAttributes
htmlWrapperAttributes()
Returns string of HTML attributes for element wrapper paragraph.
Definition
Input.php:636
Depage\HtmlForm\Abstracts\Input\htmlMarker
htmlMarker()
Returns elements' required-indicator.
Definition
Input.php:566
Depage\HtmlForm\Abstracts\Input\$helpMessage
$helpMessage
Extra help message.
Definition
Input.php:230
Depage\HtmlForm\Abstracts\Input\htmlValue
htmlValue()
Returns HTML-rendered element value.
Definition
Input.php:656
Depage\HtmlForm\Abstracts\Input\$marker
$marker
Input element - HTML marker text that marks required fields.
Definition
Input.php:92
Depage\HtmlForm\Abstracts\Input\htmlErrorMessage
htmlErrorMessage()
Returns HTML-rendered error message.
Definition
Input.php:666
Depage\HtmlForm\Elements\Datetimelocal
HTML datetime-local input type.
Definition
Datetimelocal.php:19
Depage\HtmlForm\Elements\Datetimelocal\__toString
__toString()
Renders element to HTML.
Definition
Datetimelocal.php:27
Depage\HtmlForm\Elements\Text
HTML text input type.
Definition
Text.php:40
Depage\HtmlForm\Elements\Text\htmlInputAttributes
htmlInputAttributes()
renders text element specific HTML attributes
Definition
Text.php:160
Elements
Datetimelocal.php
Generated on
for depage-forms by
doxygen
1.18.0
For an overview of all docs, go to
docs.depage.net