summaryrefslogtreecommitdiffstats
path: root/codebase/Dhtmlx/Connector/JSONGanttConnector.php
diff options
context:
space:
mode:
authorEgor <egor.26.93@gmail.com>2015-06-18 16:02:50 +0300
committerEgor <egor.26.93@gmail.com>2015-06-18 16:02:50 +0300
commita0dc94dd471be520a280db2a9807ab7d40b7bbee (patch)
tree7696b369662853fba5979531928ce75831ce7a52 /codebase/Dhtmlx/Connector/JSONGanttConnector.php
parent4545f686b060fff791bca679f9fcc6512a666e60 (diff)
downloadconnector-php-a0dc94dd471be520a280db2a9807ab7d40b7bbee.zip
connector-php-a0dc94dd471be520a280db2a9807ab7d40b7bbee.tar.gz
connector-php-a0dc94dd471be520a280db2a9807ab7d40b7bbee.tar.bz2
Fixed bug with xml processing in gantt.
Diffstat (limited to 'codebase/Dhtmlx/Connector/JSONGanttConnector.php')
-rwxr-xr-xcodebase/Dhtmlx/Connector/JSONGanttConnector.php58
1 files changed, 0 insertions, 58 deletions
diff --git a/codebase/Dhtmlx/Connector/JSONGanttConnector.php b/codebase/Dhtmlx/Connector/JSONGanttConnector.php
index 6d2b0f6..f708b6e 100755
--- a/codebase/Dhtmlx/Connector/JSONGanttConnector.php
+++ b/codebase/Dhtmlx/Connector/JSONGanttConnector.php
@@ -1,12 +1,6 @@
<?php
namespace Dhtmlx\Connector;
-use Dhtmlx\Connector\Tools\LogMaster;
-use Dhtmlx\Connector\Tools\EventMaster;
use Dhtmlx\Connector\Output\OutputWriter;
-use Dhtmlx\Connector\Event\SortInterface;
-use Dhtmlx\Connector\Event\FilterInterface;
-use Dhtmlx\Connector\DataStorage\ArrayDBDataWrapper;
-use Dhtmlx\Connector\DataStorage\ArrayQueryWrapper;
class JSONGanttConnector extends GanttConnector {
@@ -108,56 +102,4 @@ class JSONGanttConnector extends GanttConnector {
$this->set_options("links", $links);
}
-
- /*! render self
- process commands, output requested data as XML
- */
- public function render(){
- $this->event->trigger("onInit", $this);
- EventMaster::trigger_static("connectorInit",$this);
-
- if (!$this->as_string)
- $this->parse_request();
- $this->set_relation();
-
- if ($this->live_update !== false && $this->updating!==false) {
- $this->live_update->get_updates();
- } else {
- if ($this->editing){
- if ($this->links_mode && isset($this->options["links"])) {
- $this->options["links"]->save();
- } else {
- $dp = new $this->names["data_class"]($this,$this->config,$this->request);
- $dp->process($this->config,$this->request);
- }
- } else {
- if (!$this->access->check("read")){
- LogMaster::log("Access control: read operation blocked");
- echo "Access denied";
- die();
- }
- $wrap = new SortInterface($this->request);
- $this->apply_sorts($wrap);
- $this->event->trigger("beforeSort",$wrap);
- $wrap->store();
-
- $wrap = new FilterInterface($this->request);
- $this->apply_filters($wrap);
- $this->event->trigger("beforeFilter",$wrap);
- $wrap->store();
-
- if ($this->model && method_exists($this->model, "get")){
- $this->sql = new ArrayDBDataWrapper();
- $result = new ArrayQueryWrapper(call_user_func(array($this->model, "get"), $this->request));
- $out = $this->output_as_xml($result);
- } else {
- $out = $this->output_as_xml($this->get_resource());
-
- if ($out !== null) return $out;
- }
-
- }
- }
- $this->end_run();
- }
} \ No newline at end of file