summaryrefslogtreecommitdiffstats
path: root/codebase/Dhtmlx/Connector/Output/RenderStrategy.php
diff options
context:
space:
mode:
authorEgor <egor.26.93@gmail.com>2015-06-12 16:06:06 +0300
committerEgor <egor.26.93@gmail.com>2015-06-12 16:06:06 +0300
commit9abd184a386a2594398df9f5cd7bd6d5b9c240fc (patch)
tree6b237196dd4ae8bdee61093308f5c3dcdcc5c79e /codebase/Dhtmlx/Connector/Output/RenderStrategy.php
parent5fbd0adda5155853e86001fad4c571008f09f01b (diff)
downloadconnector-php-9abd184a386a2594398df9f5cd7bd6d5b9c240fc.zip
connector-php-9abd184a386a2594398df9f5cd7bd6d5b9c240fc.tar.gz
connector-php-9abd184a386a2594398df9f5cd7bd6d5b9c240fc.tar.bz2
Updated structure. Added connectors.
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++;
}