summaryrefslogtreecommitdiffstats
path: root/codebase/tree_connector.php
diff options
context:
space:
mode:
authorStanislau Wolski <stanislau.wolski@gmail.com>2014-04-18 13:29:59 +0300
committerStanislau Wolski <stanislau.wolski@gmail.com>2014-04-18 13:29:59 +0300
commit1eb0d049180342db92bed2c1acaa9f6d7a76cca9 (patch)
tree08669004cfebc5d7431362253de099dbb7cc3fd5 /codebase/tree_connector.php
parenta98ac5261f2e8dbf70bcc2af3543279841637c80 (diff)
downloadconnector-php-1eb0d049180342db92bed2c1acaa9f6d7a76cca9.zip
connector-php-1eb0d049180342db92bed2c1acaa9f6d7a76cca9.tar.gz
connector-php-1eb0d049180342db92bed2c1acaa9f6d7a76cca9.tar.bz2
[add] $rootId for tree connectors
Diffstat (limited to 'codebase/tree_connector.php')
-rw-r--r--codebase/tree_connector.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/codebase/tree_connector.php b/codebase/tree_connector.php
index f8985e2..03f267d 100644
--- a/codebase/tree_connector.php
+++ b/codebase/tree_connector.php
@@ -151,6 +151,7 @@ require_once("filesystem_item.php");
**/
class TreeConnector extends Connector{
protected $parent_name = 'id';
+ public $rootId = "0";
/*! constructor
@@ -180,7 +181,7 @@ class TreeConnector extends Connector{
if (isset($_GET[$this->parent_name]))
$this->request->set_relation($_GET[$this->parent_name]);
else
- $this->request->set_relation("0");
+ $this->request->set_relation($this->rootId);
$this->request->set_limit(0,0); //netralize default reaction on dyn. loading mode
}