summaryrefslogtreecommitdiffstats
path: root/codebase/grid_connector.php
diff options
context:
space:
mode:
Diffstat (limited to 'codebase/grid_connector.php')
-rw-r--r--codebase/grid_connector.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/codebase/grid_connector.php b/codebase/grid_connector.php
index b9edc7a..a54799e 100644
--- a/codebase/grid_connector.php
+++ b/codebase/grid_connector.php
@@ -112,7 +112,8 @@ class GridDataItem extends DataItem{
foreach ($cattrs as $k => $v)
$str.=" ".$k."='".$this->xmlentities($v)."'";
}
- $str.="><![CDATA[".$this->data[$name]."]]></cell>";
+ $value = isset($this->data[$name]) ? $this->data[$name] : '';
+ $str.="><![CDATA[".$value."]]></cell>";
}
foreach ($this->userdata as $key => $value)
$str.="<userdata name='".$key."'><![CDATA[".$value."]]></userdata>";
@@ -145,10 +146,11 @@ class GridConnector extends Connector{
@param data_type
name of class which will be used for dataprocessor calls handling, optional, DataProcessor class will be used by default.
*/
- public function __construct($res,$type=false,$item_type=false,$data_type=false){
+ public function __construct($res,$type=false,$item_type=false,$data_type=false,$render_type=false){
if (!$item_type) $item_type="GridDataItem";
if (!$data_type) $data_type="GridDataProcessor";
- parent::__construct($res,$type,$item_type,$data_type);
+ if (!$render_type) $render_type="RenderStrategy";
+ parent::__construct($res,$type,$item_type,$data_type,$render_type);
}