summaryrefslogtreecommitdiffstats
path: root/codebase/base_connector.php
diff options
context:
space:
mode:
authordmitry-radyno <dmitry.radyno@gmail.com>2013-05-17 15:31:52 +0200
committerdmitry-radyno <dmitry.radyno@gmail.com>2013-05-17 15:31:52 +0200
commitdce6bcc4b436ed2b9d1f1c476b9c4e36cb053ad0 (patch)
treee0b8ba8e1eb547d4df0ec9bcb51f84a2c6ebbc63 /codebase/base_connector.php
parent2b095bc184f2db05f9895db11c270c95361296e7 (diff)
downloadconnector-php-dce6bcc4b436ed2b9d1f1c476b9c4e36cb053ad0.zip
connector-php-dce6bcc4b436ed2b9d1f1c476b9c4e36cb053ad0.tar.gz
connector-php-dce6bcc4b436ed2b9d1f1c476b9c4e36cb053ad0.tar.bz2
dynamic loading for Connector and DataConnector
Diffstat (limited to 'codebase/base_connector.php')
-rw-r--r--codebase/base_connector.php8
1 files changed, 8 insertions, 0 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."'";