summaryrefslogtreecommitdiffstats
path: root/codebase/gantt_connector.php
diff options
context:
space:
mode:
authordmitry-radyno <dmitry.radyno@gmail.com>2013-04-15 13:46:28 +0200
committerdmitry-radyno <dmitry.radyno@gmail.com>2013-04-15 13:46:28 +0200
commit9c5fc2037ca8b08be6fa7d5f3ae1aa53298a6e15 (patch)
tree81348890f95db75544550ac2562d200b04872a26 /codebase/gantt_connector.php
parent02a1869add8ed7777293d02fe3475a4f74b92bd2 (diff)
downloadconnector-php-9c5fc2037ca8b08be6fa7d5f3ae1aa53298a6e15.zip
connector-php-9c5fc2037ca8b08be6fa7d5f3ae1aa53298a6e15.tar.gz
connector-php-9c5fc2037ca8b08be6fa7d5f3ae1aa53298a6e15.tar.bz2
rendering links
Diffstat (limited to 'codebase/gantt_connector.php')
-rw-r--r--codebase/gantt_connector.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/codebase/gantt_connector.php b/codebase/gantt_connector.php
index 11ae06a..1c04116 100644
--- a/codebase/gantt_connector.php
+++ b/codebase/gantt_connector.php
@@ -93,10 +93,16 @@ class GanttConnector extends Connector{
$this->request->set_filter($this->config->text[1]["name"],$_GET["from"],">");
}
}
-
+
public function openAll($mode = true) {
GanttDataItem::$open = $mode;
}
+
+ public function render_links($table,$id="",$fields=false,$extra=false,$relation_id=false) {
+ $links = new OptionsConnector($this->get_connection(),$this->names["db_class"]);
+ $links->render_table($table,$id,$fields,$extra);
+ $this->set_options("links", $links);
+ }
}
/*! DataProcessor class for Gantt component
@@ -237,5 +243,11 @@ class JSONGanttConnector extends GanttConnector {
$this->event->trigger("beforeOutput", $this, $out);
$out->output("", true, $this->encoding);
}
+
+ public function render_links($table,$id="",$fields=false,$extra=false,$relation_id=false) {
+ $links = new JSONOptionsConnector($this->get_connection(),$this->names["db_class"]);
+ $links->render_table($table,$id,$fields,$extra);
+ $this->set_options("links", $links);
+ }
}
?> \ No newline at end of file