diff options
Diffstat (limited to 'codebase/dataview_connector.php')
-rw-r--r-- | codebase/dataview_connector.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/codebase/dataview_connector.php b/codebase/dataview_connector.php index 0c4ca0c..41b7387 100644 --- a/codebase/dataview_connector.php +++ b/codebase/dataview_connector.php @@ -56,14 +56,19 @@ class DataViewConnector extends Connector{ /*! renders self as xml, starting part */ protected function xml_start(){ + $attributes = ""; + foreach($this->attributes as $k=>$v) + $attributes .= " ".$k."='".$v."'"; + + $start.= ">"; if ($this->dload){ if ($pos=$this->request->get_start()) - return "<data pos='".$pos."'>"; + return "<data pos='".$pos."'".$attributes.">"; else - return "<data total_count='".$this->sql->get_size($this->request)."'>"; + return "<data total_count='".$this->sql->get_size($this->request)."'".$attributes.">"; } else - return "<data>"; + return "<data".$attributes.">"; } } ?>
\ No newline at end of file |