當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Connector::parse_request方法代碼示例

本文整理匯總了PHP中Connector::parse_request方法的典型用法代碼示例。如果您正苦於以下問題:PHP Connector::parse_request方法的具體用法?PHP Connector::parse_request怎麽用?PHP Connector::parse_request使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Connector的用法示例。


在下文中一共展示了Connector::parse_request方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["posStart"]) && isset($_GET["count"])) {
         $this->request->set_limit($_GET["posStart"], $_GET["count"]);
     }
 }
開發者ID:kraaden,項目名稱:scheduler,代碼行數:7,代碼來源:dataview_connector.php

示例2:

 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"], ">");
     }
 }
開發者ID:Jellious,項目名稱:test2223,代碼行數:10,代碼來源:scheduler_connector.php

示例3: Exception

 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");
         }
     }
 }
開發者ID:neohusky,項目名稱:demo,代碼行數:11,代碼來源:form_connector.php

示例4:

 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);
 }
開發者ID:ValentinNikolaev,項目名稱:Laravel5-dhtmlxScheduler-demo,代碼行數:15,代碼來源:combo_connector.php

示例5: parse_request

 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"]);
     }
 }
開發者ID:jekay100,項目名稱:xwtec,代碼行數:27,代碼來源:data_connector.php

示例6: parse_request

 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
 }
開發者ID:BaisicaSAS,項目名稱:BaisicaERP,代碼行數:11,代碼來源:tree_connector.php

示例7: parse_request

 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"]);
     }
 }
開發者ID:jekay100,項目名稱:xwtec,代碼行數:10,代碼來源:grid_connector.php

示例8: parse_request

 protected function parse_request()
 {
     parent::parse_request();
     if (isset($_GET["dhx_colls"])) {
         $this->fill_collections($_GET["dhx_colls"]);
     }
 }
開發者ID:elsonvinicius,項目名稱:huab,代碼行數:7,代碼來源:grid_connector.php

示例9:

 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"], ">");
         }
     }
 }
開發者ID:matak,項目名稱:connector-php,代碼行數:15,代碼來源:gantt_connector.php

示例10: parse_request

 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);
     }
 }
開發者ID:FAVHYAN,項目名稱:a3workout,代碼行數:34,代碼來源:data_connector.php

示例11:

 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"], ">");
         }
     }
 }
開發者ID:averdugo,項目名稱:serving,代碼行數:19,代碼來源:gantt_connector.php


注:本文中的Connector::parse_request方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。