summaryrefslogtreecommitdiffstats
path: root/codebase/Dhtmlx/Connector/Output/RenderStrategy.php
diff options
context:
space:
mode:
Diffstat (limited to 'codebase/Dhtmlx/Connector/Output/RenderStrategy.php')
-rw-r--r--codebase/Dhtmlx/Connector/Output/RenderStrategy.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/codebase/Dhtmlx/Connector/Output/RenderStrategy.php b/codebase/Dhtmlx/Connector/Output/RenderStrategy.php
index 07ed39e..24bdf56 100644
--- a/codebase/Dhtmlx/Connector/Output/RenderStrategy.php
+++ b/codebase/Dhtmlx/Connector/Output/RenderStrategy.php
@@ -1,8 +1,9 @@
<?php
namespace Dhtmlx\Connector\Output;
-
use Dhtmlx\Connector\Data\DataItem;
-use Dhtmlx\Connector\GridDataItem;
+use Dhtmlx\Connector\Data\GridDataItem;
+use \Exception;
+
class RenderStrategy {
protected $conn = null;
@@ -98,13 +99,15 @@ class RenderStrategy {
$conn = $this->conn;
$this->mix($config, $mix);
$conn->event->trigger("beforeRenderSet",$conn,$res,$config);
- while ($data=$conn->sql->get_next($res)){
+
+ while($data=$conn->sql->get_next($res)) {
$data = $this->simple_mix($mix, $data);
+ $data = new $name($data, $config, $index);
- $data = new $name($data,$config,$index);
- if ($data->get_id()===false)
+ if($data->get_id()===false)
$data->set_id($conn->uuid());
- $conn->event->trigger("beforeRender",$data);
+
+ $conn->event->trigger("beforeRender", $data);
$output.=$data->to_xml().$sep;
$index++;
}