本文整理汇总了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"]);
}
}
示例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"], ">");
}
}
示例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");
}
}
}
示例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);
}
示例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"]);
}
}
示例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
}
示例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"]);
}
}
示例8: parse_request
protected function parse_request()
{
parent::parse_request();
if (isset($_GET["dhx_colls"])) {
$this->fill_collections($_GET["dhx_colls"]);
}
}
示例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"], ">");
}
}
}
示例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);
}
}
示例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"], ">");
}
}
}