summaryrefslogtreecommitdiffstats
path: root/codebase
diff options
context:
space:
mode:
Diffstat (limited to 'codebase')
-rw-r--r--codebase/base_connector.php8
-rw-r--r--codebase/data_connector.php11
2 files changed, 18 insertions, 1 deletions
diff --git a/codebase/base_connector.php b/codebase/base_connector.php
index 97e8ac0..c4373ea 100644
--- a/codebase/base_connector.php
+++ b/codebase/base_connector.php
@@ -729,6 +729,14 @@ class Connector {
*/
protected function xml_start(){
$attributes = "";
+
+ if ($this->dload){
+ //info for dyn. loadin
+ if ($pos=$this->request->get_start())
+ $attributes .= " pos='".$pos."'";
+ else
+ $attributes .= " pos='0' total_count='".$this->sql->get_size($this->request)."'";
+ }
foreach($this->attributes as $k=>$v)
$attributes .= " ".$k."='".$v."'";
diff --git a/codebase/data_connector.php b/codebase/data_connector.php
index 2a4e0a3..751ea7c 100644
--- a/codebase/data_connector.php
+++ b/codebase/data_connector.php
@@ -145,11 +145,20 @@ class DataConnector extends Connector{
$this->request->set_limit($_GET["start"],$_GET["count"]);
}
-
+
/*! renders self as xml, starting part
*/
protected function xml_start(){
$start = "<data";
+
+ if ($this->dload){
+ //info for dyn. loadin
+ if ($pos=$this->request->get_start())
+ $start .= " pos='".$pos."'";
+ else
+ $start .= " pos='0' total_count='".$this->sql->get_size($this->request)."'";
+ }
+
foreach($this->attributes as $k=>$v)
$start .= " ".$k."='".$v."'";
$start.= ">";