Datetimelocal.php
Go to the documentation of this file.
1<?php
11
17class Datetimelocal extends Text
18{
26 public function __toString()
27 {
28 $wrapperAttributes = $this->htmlWrapperAttributes();
29 $label = $this->htmlLabel();
30 $marker = $this->htmlMarker();
31 $value = $this->htmlValue();
32 $inputAttributes = $this->htmlInputAttributes();
35
36 return "<p {$wrapperAttributes}>" .
37 "<label>" .
38 "<span class=\"depage-label\">{$label}{$marker}</span>" .
39 "<input name=\"{$this->name}\" type=\"datetime-local\"{$inputAttributes} value=\"{$value}\">" .
40 "</label>" .
43 "</p>\n";
44 }
45}
46
47/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
$value
Input elements's value.
Definition Input.php:123
$label
Input element - HTML label.
Definition Input.php:36
$errorMessage
Message that gets displayed in case of invalid input.
Definition Input.php:217
htmlHelpMessage()
Returns HTML-rendered helpMessage.
Definition Input.php:676
htmlWrapperAttributes()
Returns string of HTML attributes for element wrapper paragraph.
Definition Input.php:627
htmlMarker()
Returns elements' required-indicator.
Definition Input.php:565
$helpMessage
Extra help message.
Definition Input.php:229
htmlValue()
Returns HTML-rendered element value.
Definition Input.php:647
$marker
Input element - HTML marker text that marks required fields.
Definition Input.php:91
htmlErrorMessage()
Returns HTML-rendered error message.
Definition Input.php:657
HTML datetime-local input type.
__toString()
Renders element to HTML.
HTML text input type.
Definition Text.php:39
htmlInputAttributes()
renders text element specific HTML attributes
Definition Text.php:159
Classes for HTML input-elements.
Definition Address.php:9