egroupware/etemplate/inc/class.etemplate_widget_date.inc.php

26 lines
688 B
PHP
Raw Normal View History

2011-08-30 22:50:55 +02:00
<?php
/**
* EGroupware - eTemplate serverside date widget
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package etemplate
* @subpackage api
* @link http://www.egroupware.org
* @author Nathan Gray
* @copyright 2011 Nathan Gray
* @version $Id$
*/
/**
* eTemplate date widget
* Deals with date and time. Overridden to handle date-houronly as a transform
*/
class etemplate_widget_date extends etemplate_widget_transformer
{
protected static $transformation = array(
'type' => array('date-houronly' => 'select-hour')
);
}
new jscalendar();
etemplate_widget::registerWidget('etemplate_widget_date', array('date-houronly'));