DateBox
in package
A HTML widget for rendering a text box with calendar icon for Date/Timestamp types.
Tags
Table of Contents
Properties
- $dateObject : Date
- The date or timestamp object for the widget.
- $label : string
- The data label for the object.
- $name : string
- The name of the HTML input box.
Methods
- __construct() : mixed
- The constructor.
- render() : string
- Renders the text box and icon to open the calendar pop-up.
Properties
$dateObject
The date or timestamp object for the widget.
private
Date
$dateObject
= null
or Alpha\Model\Type\Timestamp
Tags
$label
The data label for the object.
private
string
$label
Tags
$name
The name of the HTML input box.
private
string
$name
Tags
Methods
__construct()
The constructor.
public
__construct(mixed $object[, string $label = '' ][, string $name = '' ]) : mixed
Parameters
- $object : mixed
- $label : string = ''
-
The data label for the object.
- $name : string = ''
-
The name of the HTML input box.
Tags
render()
Renders the text box and icon to open the calendar pop-up.
public
render() : string