コード例 #1
0
 function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["posStart"]) && isset($_GET["count"])) {
         $this->request->set_limit($_GET["posStart"], $_GET["count"]);
     }
 }
コード例 #2
0
 function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["to"])) {
         $this->request->set_filter($this->config->text[0]["name"], $_GET["to"], "<");
     }
     if (isset($_GET["from"])) {
         $this->request->set_filter($this->config->text[1]["name"], $_GET["from"], ">");
     }
 }
コード例 #3
0
ファイル: form_connector.php プロジェクト: neohusky/demo
 function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["id"])) {
         $this->request->set_filter($this->config->id["name"], $_GET["id"], "=");
     } else {
         if (!$_POST["ids"]) {
             throw new Exception("ID parameter is missed");
         }
     }
 }
 function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["pos"])) {
         if (!$this->dload) {
             LogMaster::log("Dyn loading request received, but server side was not configured to process dyn. loading. ");
         } else {
             $this->request->set_limit($_GET["pos"], $this->dload);
         }
     }
     if (isset($_GET["mask"])) {
         $this->request->set_filter($this->config->text[0]["db_name"], $_GET["mask"] . "%", "LIKE");
     }
     LogMaster::log($this->request);
 }
コード例 #5
0
ファイル: data_connector.php プロジェクト: jekay100/xwtec
 protected function parse_request()
 {
     if (isset($_GET['action'])) {
         $action = $_GET['action'];
         //simple request mode
         if ($action == "get") {
             //data request
             if (isset($_GET['id'])) {
                 //single entity data request
                 $this->request->set_filter($this->config->id["name"], $_GET['id'], "=");
             } else {
                 //loading collection of items
             }
         } else {
             //data saving
             $this->editing = true;
         }
     } else {
         if (isset($_GET['editing']) && isset($_POST['ids'])) {
             $this->editing = true;
         }
         parent::parse_request();
     }
     if (isset($_GET["start"]) && isset($_GET["count"])) {
         $this->request->set_limit($_GET["start"], $_GET["count"]);
     }
 }
コード例 #6
0
 public function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["id"])) {
         $this->request->set_relation($_GET["id"]);
     } else {
         $this->request->set_relation("0");
     }
     $this->request->set_limit(0, 0);
     //netralize default reaction on dyn. loading mode
 }
コード例 #7
0
ファイル: grid_connector.php プロジェクト: jekay100/xwtec
 protected function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["dhx_colls"])) {
         $this->fill_collections($_GET["dhx_colls"]);
     }
     if (isset($_GET["posStart"]) && isset($_GET["count"])) {
         $this->request->set_limit($_GET["posStart"], $_GET["count"]);
     }
 }
コード例 #8
0
ファイル: grid_connector.php プロジェクト: elsonvinicius/huab
 protected function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["dhx_colls"])) {
         $this->fill_collections($_GET["dhx_colls"]);
     }
 }
コード例 #9
0
 function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["gantt_mode"]) && $_GET["gantt_mode"] == "links") {
         $this->links_mode = true;
     }
     if (count($this->config->text)) {
         if (isset($_GET["to"])) {
             $this->request->set_filter($this->config->text[0]["name"], $_GET["to"], "<");
         }
         if (isset($_GET["from"])) {
             $this->request->set_filter($this->config->text[1]["name"], $_GET["from"], ">");
         }
     }
 }
コード例 #10
0
ファイル: data_connector.php プロジェクト: FAVHYAN/a3workout
 protected function parse_request()
 {
     if (isset($_GET['action'])) {
         $action = $_GET['action'];
         //simple request mode
         if ($action == "get") {
             //data request
             if (isset($_GET['id'])) {
                 //single entity data request
                 $this->request->set_filter($this->config->id["name"], $_GET['id'], "=");
             } else {
                 //loading collection of items
             }
         } else {
             //data saving
             $this->editing = true;
         }
     } else {
         if (isset($_GET["dhx_colls"])) {
             $this->fill_collections($_GET["dhx_colls"]);
         }
         if (isset($_GET['editing']) && isset($_POST['ids'])) {
             $this->editing = true;
         }
         parent::parse_request();
     }
     if (isset($_GET["start"]) && isset($_GET["count"])) {
         $this->request->set_limit($_GET["start"], $_GET["count"]);
     }
     $key = ConnectorSecurity::checkCSRF($this->editing);
     if ($key !== "") {
         $this->add_top_attribute("dhx_security", $key);
     }
 }
コード例 #11
0
ファイル: gantt_connector.php プロジェクト: averdugo/serving
 function parse_request()
 {
     parent::parse_request();
     $action_links = "links";
     if (isset($_GET["gantt_mode"]) && $_GET["gantt_mode"] == $action_links) {
         $this->action_mode = $action_links;
         $this->request->set_action_mode($action_links);
         $this->options[$action_links]->request->set_action_mode($action_links);
         $this->options[$action_links]->request->set_user($this->request->get_user());
     }
     if (count($this->config->text)) {
         if (isset($_GET["to"])) {
             $this->request->set_filter($this->config->text[0]["name"], $_GET["to"], "<");
         }
         if (isset($_GET["from"])) {
             $this->request->set_filter($this->config->text[1]["name"], $_GET["from"], ">");
         }
     }
 }