2014-05-07 16:41:15 +02:00
|
|
|
<?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$
|
|
|
|
*/
|
|
|
|
|
2014-05-14 00:24:25 +02:00
|
|
|
egw_framework::includeCSS('/phpgwapi/js/dhtmlxGantt/codebase/dhtmlxgantt.css');
|
|
|
|
|
2014-05-07 16:41:15 +02:00
|
|
|
/**
|
|
|
|
* 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']
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2014-05-07 16:41:15 +02:00
|
|
|
}
|
|
|
|
// register class for layout widgets, which can have an own namespace
|
|
|
|
//etemplate_widget::registerWidget('etemplate_widget_box', array('box', 'hbox', 'vbox', 'groupbox'));
|