summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordmitry-radyno <dmitry.radyno@gmail.com>2013-05-17 16:16:41 +0200
committerdmitry-radyno <dmitry.radyno@gmail.com>2013-05-17 16:16:41 +0200
commitf00479054b50298e9e5e048c086f8f9daf5ecdbf (patch)
treec82a4cea2a6190805e3c682df28e53549159c425
parent8cef4f35a1649e468237739c19096edfae46571b (diff)
downloadconnector-php-f00479054b50298e9e5e048c086f8f9daf5ecdbf.zip
connector-php-f00479054b50298e9e5e048c086f8f9daf5ecdbf.tar.gz
connector-php-f00479054b50298e9e5e048c086f8f9daf5ecdbf.tar.bz2
dynloading improvement
-rw-r--r--codebase/base_connector.php10
-rw-r--r--codebase/grid_connector.php3
2 files changed, 7 insertions, 6 deletions
diff --git a/codebase/base_connector.php b/codebase/base_connector.php
index c4373ea..2f5c5ca 100644
--- a/codebase/base_connector.php
+++ b/codebase/base_connector.php
@@ -575,10 +575,14 @@ class Connector {
protected function parse_request(){
//set default dyn. loading params, can be reset in child classes
if ($this->dload)
- $this->request->set_limit(0,$this->dload);
+ $this->request->set_limit(0,$this->dload);
else if ($this->limit)
$this->request->set_limit(0,$this->limit);
-
+
+ if (isset($_GET["posStart"]) && isset($_GET["count"])) {
+ $this->request->set_limit($_GET["posStart"],$_GET["count"]);
+ }
+
$this->parse_request_mode();
if ($this->live_update && ($this->updating || $this->editing)){
@@ -735,7 +739,7 @@ class Connector {
if ($pos=$this->request->get_start())
$attributes .= " pos='".$pos."'";
else
- $attributes .= " pos='0' total_count='".$this->sql->get_size($this->request)."'";
+ $attributes .= " total_count='".$this->sql->get_size($this->request)."'";
}
foreach($this->attributes as $k=>$v)
$attributes .= " ".$k."='".$v."'";
diff --git a/codebase/grid_connector.php b/codebase/grid_connector.php
index 1244e0b..9748dee 100644
--- a/codebase/grid_connector.php
+++ b/codebase/grid_connector.php
@@ -145,9 +145,6 @@ class GridConnector extends Connector{
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"]);
}
protected function resolve_parameter($name){
if (intval($name).""==$name)