egroupware/etemplate/inc/class.etemplate_widget_gantt.inc.php

46 lines
1.2 KiB
PHP
Raw Normal View History

<?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();
2014-05-22 00:11:36 +02:00
/**
* 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'));