mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
46 lines
1.2 KiB
PHP
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'));
|