<?php include 'config.php'; $gantt = new GanttConnector($res, $dbtype); $gantt->mix("open", 1); //$gantt->enable_order("sortorder"); $gantt->render_links("gantt_links", "id", "source,target,type"); $gantt->render_table("gantt_tasks", "id", "start_date,duration,text,progress,sortorder,parent");
public function __construct($res, $type = false, $item_type = false, $data_type = false, $render_type = false) { if (!$item_type) { $item_type = "JSONGanttDataItem"; } if (!$data_type) { $data_type = "GanttDataProcessor"; } if (!$render_type) { $render_type = "JSONRenderStrategy"; } parent::__construct($res, $type, $item_type, $data_type, $render_type); }