1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2024-12-25 16:18:57 +01:00
egroupware_official/etemplate/inc/class.etemplate_widget_gantt.inc.php
2014-05-21 22:11:36 +00:00

46 lines
1.2 KiB
PHP

<?php
/**
* EGroupware - eTemplate serverside gantt 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 2014 Nathan Gray
* @version $Id$
*/
egw_framework::includeCSS('/phpgwapi/js/dhtmlxGantt/codebase/dhtmlxgantt.css');
/**
* eTemplate Gantt chart widget
*
* The Gantt widget accepts children, and uses them as simple filters
*/
class etemplate_widget_gantt extends etemplate_widget_box
{
// No legacy options
protected $legacy_options = array();
/**
* Validate input
*
* @param string $cname current namespace
* @param array $expand values for keys 'c', 'row', 'c_', 'row_', 'cont'
* @param array $content
* @param array &$validated=array() validated content
*/
public function validate($cname, array $expand, array $content, &$validated=array())
{
$value = self::get_array($content, $cname);
$validated[$cname] = array(
'action' => $value['action'],
'selected' => $value['selected']
);
}
}
// register class for layout widgets, which can have an own namespace
//etemplate_widget::registerWidget('etemplate_widget_box', array('box', 'hbox', 'vbox', 'groupbox'));