当前位置: 首页>>代码示例>>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;未经允许,请勿转载。