diff options
author | dmitry-radyno <dmitry.radyno@gmail.com> | 2013-05-17 15:35:33 +0200 |
---|---|---|
committer | dmitry-radyno <dmitry.radyno@gmail.com> | 2013-05-17 15:35:33 +0200 |
commit | 8cef4f35a1649e468237739c19096edfae46571b (patch) | |
tree | 0033fddb49575eb138ebdcb50ffab11f08b7b6aa | |
parent | dce6bcc4b436ed2b9d1f1c476b9c4e36cb053ad0 (diff) | |
download | connector-php-8cef4f35a1649e468237739c19096edfae46571b.zip connector-php-8cef4f35a1649e468237739c19096edfae46571b.tar.gz connector-php-8cef4f35a1649e468237739c19096edfae46571b.tar.bz2 |
remove duplicating code
-rw-r--r-- | codebase/data_connector.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/codebase/data_connector.php b/codebase/data_connector.php index 751ea7c..8de6025 100644 --- a/codebase/data_connector.php +++ b/codebase/data_connector.php @@ -149,19 +149,7 @@ class DataConnector extends Connector{ /*! 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.= ">"; + $start = parent::xml_start(); foreach($this->sections as $k=>$v) $start .= "<".$k.">".$v."</".$k.">\n"; |