summaryrefslogtreecommitdiffstats
path: root/codebase/Dhtmlx/Connector/JSONGanttConnector.php
diff options
context:
space:
mode:
authorEgor <egor.26.93@gmail.com>2015-07-19 23:15:08 +0300
committerEgor <egor.26.93@gmail.com>2015-07-19 23:15:08 +0300
commit50ff8ab2720fabea8a815b96071b6bab3e3a5dbb (patch)
tree422338359e04b5b86eeb680cd2043493a0faa939 /codebase/Dhtmlx/Connector/JSONGanttConnector.php
parent8255a94f15a0722c8789a9b363962ca943e51d6b (diff)
downloadconnector-php-50ff8ab2720fabea8a815b96071b6bab3e3a5dbb.zip
connector-php-50ff8ab2720fabea8a815b96071b6bab3e3a5dbb.tar.gz
connector-php-50ff8ab2720fabea8a815b96071b6bab3e3a5dbb.tar.bz2
Updated live update functionality.
Diffstat (limited to 'codebase/Dhtmlx/Connector/JSONGanttConnector.php')
-rwxr-xr-xcodebase/Dhtmlx/Connector/JSONGanttConnector.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/codebase/Dhtmlx/Connector/JSONGanttConnector.php b/codebase/Dhtmlx/Connector/JSONGanttConnector.php
index f708b6e..3198d25 100755
--- a/codebase/Dhtmlx/Connector/JSONGanttConnector.php
+++ b/codebase/Dhtmlx/Connector/JSONGanttConnector.php
@@ -5,6 +5,7 @@ use Dhtmlx\Connector\Output\OutputWriter;
class JSONGanttConnector extends GanttConnector {
protected $data_separator = ",";
+ protected $live_update_data_type = "Dhtmlx\\Connector\\Data\\JSONGanttDataUpdate";
/*! constructor
@@ -98,6 +99,10 @@ class JSONGanttConnector extends GanttConnector {
public function render_links($table,$id="",$fields=false,$extra=false,$relation_id=false) {
$links = new JSONGanttLinksConnector($this->get_connection(),$this->names["db_class"]);
+
+ if($this->live_update)
+ $links->enable_live_update($this->live_update->get_table());
+
$links->render_table($table,$id,$fields,$extra);
$this->set_options("links", $links);
}