<?php
/**
* This file is part of the Nella Framework (http://nellafw.org).
*
* Copyright (c) 2006, 2012 Patrik VotoÄek (http://patrik.votocek.cz)
*
* For the full copyright and license information, please view the file LICENSE.txt that was distributed with this source code.
*/
namespace Nella\NetteAddons\Forms\Controls;
/**
* Form time field item
*
* @author Patrik VotoÄek
*/
class Time extends BaseDateTime
{
/** @var string */
public static $format = "G:i";
/**
* @param string control name
* @param string label
* @param int width of the control
* @param int maximum number of characters the user may enter
*/
public function __construct($label = NULL, $cols = NULL, $maxLength = NULL)
{
parent::__construct($label, $cols, $maxLength);
$this->control->type = "time";
$this->control->data('nella-forms-time', static::$format);
}
}