mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Changed code for to run with Alex's code
This commit is contained in:
parent
9191b97f07
commit
3556621cf0
@ -18,14 +18,14 @@ require_once("include/class/Tree.class.php");
|
|||||||
$getChildren = (bool)get_parameter('getChildren', 0);
|
$getChildren = (bool)get_parameter('getChildren', 0);
|
||||||
|
|
||||||
if ($getChildren) {
|
if ($getChildren) {
|
||||||
|
$type = get_parameter('type', 'group');
|
||||||
$filter = get_parameter('filter',
|
$filter = get_parameter('filter',
|
||||||
array('type' => 'groupz',
|
array('search' => '',
|
||||||
'search' => '',
|
|
||||||
'status' => AGENT_STATUS_ALL));
|
'status' => AGENT_STATUS_ALL));
|
||||||
$root = (int)get_parameter('root', 0);
|
$id = (int)get_parameter('id', 0);
|
||||||
$method = get_parameter('method', 'on_demand');
|
$method = get_parameter('method', 'on_demand');
|
||||||
|
|
||||||
$tree = new Tree($filter['type'], $method, $root);
|
$tree = new Tree($type, $method, $id);
|
||||||
$tree->setFilter(array(
|
$tree->setFilter(array(
|
||||||
'status' => $filter['status'],
|
'status' => $filter['status'],
|
||||||
'search' => $filter['search']));
|
'search' => $filter['search']));
|
||||||
|
@ -18,7 +18,7 @@ class Tree {
|
|||||||
private $tree = array();
|
private $tree = array();
|
||||||
private $filter = array();
|
private $filter = array();
|
||||||
private $root = null;
|
private $root = null;
|
||||||
private $children = "on_demand";
|
private $childrenMethod = "on_demand";
|
||||||
|
|
||||||
public function __construct($type, $childrenMethod = "on_demand", $root = null) {
|
public function __construct($type, $childrenMethod = "on_demand", $root = null) {
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user