summaryrefslogtreecommitdiffstats
path: root/codebase/treegridgroup_connector.php
diff options
context:
space:
mode:
authorKirylka <kirylanoshko@gmail.com>2015-03-31 17:56:47 +0300
committerKirylka <kirylanoshko@gmail.com>2015-03-31 17:56:47 +0300
commitf5f99c335707d9b11d40f1eb0f6ddb5a993fd31a (patch)
treed9c0d3532ec9f0f2fb68e31d2611282ae0642181 /codebase/treegridgroup_connector.php
parent458f0aead573842f1df00ce2ae00334c27f66585 (diff)
downloadconnector-php-f5f99c335707d9b11d40f1eb0f6ddb5a993fd31a.zip
connector-php-f5f99c335707d9b11d40f1eb0f6ddb5a993fd31a.tar.gz
connector-php-f5f99c335707d9b11d40f1eb0f6ddb5a993fd31a.tar.bz2
Creating a new connector for yii2.
Diffstat (limited to 'codebase/treegridgroup_connector.php')
-rw-r--r--codebase/treegridgroup_connector.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/codebase/treegridgroup_connector.php b/codebase/treegridgroup_connector.php
deleted file mode 100644
index cd8fdf2..0000000
--- a/codebase/treegridgroup_connector.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-/*
- @author dhtmlx.com
- @license GPL, see license.txt
-*/
-require_once("treegrid_connector.php");
-
-class TreeGridGroupConnector extends TreeGridConnector{
-
- public function __construct($res,$type=false,$item_type=false,$data_type=false,$render_type=false){
- if (!$render_type) $render_type="GroupRenderStrategy";
- parent::__construct($res,$type,$item_type,$data_type,$render_type);
- }
-
- /*! if not isset $_GET[id] then it's top level
- */
- protected function set_relation() {
- if (!isset($_GET[$this->parent_name])) $this->request->set_relation(false);
- }
-
- /*! if it's first level then distinct level
- * else select by parent
- */
- protected function get_resource() {
- $resource = null;
- if (isset($_GET[$this->parent_name]))
- $resource = $this->sql->select($this->request);
- else
- $resource = $this->sql->get_variants($this->config->relation_id['name'], $this->request);
- return $resource;
- }
-
-
- /*! renders self as xml, starting part
- */
- protected function xml_start(){
- if (isset($_GET[$this->parent_name])) {
- return "<rows parent='".$_GET[$this->parent_name].$this->render->get_postfix()."'>";
- } else {
- return "<rows parent='0'>";
- }
- }
-
-}
-
-?> \ No newline at end of file