2011-01-17 05:33:55 +00:00
|
|
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
|
2011-05-23 10:01:27 +00:00
|
|
|
/**
|
|
|
|
* This class extends renders OSB menu tree.
|
|
|
|
*
|
|
|
|
* @package lnApp
|
|
|
|
* @subpackage Tree
|
|
|
|
* @category Controllers
|
|
|
|
* @author Deon George
|
|
|
|
* @copyright (c) 2010 Open Source Billing
|
|
|
|
* @license http://dev.osbill.net/license.html
|
|
|
|
*/
|
2012-11-26 05:57:18 +00:00
|
|
|
class Controller_Tree extends lnApp_Controller_Tree {
|
2011-05-23 10:01:27 +00:00
|
|
|
protected $auth_required = TRUE;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Draw the Tree Menu
|
|
|
|
*
|
|
|
|
* The incoming ID is either a Branch B_x or a Node N_x
|
|
|
|
* Where X is actually the module.
|
|
|
|
*
|
|
|
|
* @param id
|
|
|
|
*/
|
2012-11-26 05:57:18 +00:00
|
|
|
public function action_json(array $data=array()) {
|
2011-05-23 10:01:27 +00:00
|
|
|
// @todo Our menu options
|
|
|
|
array_push($data,array(
|
2011-05-31 14:51:15 +00:00
|
|
|
'id'=>'domain',
|
|
|
|
'name'=>'Domain Info',
|
2011-05-23 10:01:27 +00:00
|
|
|
'state'=>'none',
|
|
|
|
'attr_id'=>'1',
|
2011-05-31 14:51:15 +00:00
|
|
|
'attr_href'=>URL::Site('domain'),
|
2011-05-23 10:01:27 +00:00
|
|
|
));
|
|
|
|
|
2012-11-30 04:29:08 +00:00
|
|
|
array_push($data,array(
|
|
|
|
'id'=>'db',
|
|
|
|
'name'=>'DB Info',
|
|
|
|
'state'=>'none',
|
|
|
|
'attr_id'=>'1',
|
|
|
|
'attr_href'=>URL::Site('db'),
|
|
|
|
));
|
|
|
|
|
2011-06-24 01:27:21 +00:00
|
|
|
array_push($data,array(
|
|
|
|
'id'=>'library',
|
|
|
|
'name'=>'Library Info',
|
|
|
|
'state'=>'none',
|
|
|
|
'attr_id'=>'1',
|
|
|
|
'attr_href'=>URL::Site('library'),
|
|
|
|
));
|
|
|
|
|
2011-05-30 09:27:08 +00:00
|
|
|
array_push($data,array(
|
2011-05-31 14:51:15 +00:00
|
|
|
'id'=>'node',
|
|
|
|
'name'=>'Node Info',
|
2011-05-30 09:27:08 +00:00
|
|
|
'state'=>'none',
|
|
|
|
'attr_id'=>'1',
|
2011-05-31 14:51:15 +00:00
|
|
|
'attr_href'=>URL::Site('node'),
|
2011-05-30 09:27:08 +00:00
|
|
|
));
|
|
|
|
|
2011-05-27 08:44:44 +00:00
|
|
|
array_push($data,array(
|
|
|
|
'id'=>'activity',
|
|
|
|
'name'=>'Server Activity Gantt',
|
|
|
|
'state'=>'none',
|
|
|
|
'attr_id'=>'1',
|
2011-05-31 14:51:15 +00:00
|
|
|
'attr_href'=>URL::Site('server/gantt'),
|
2011-05-27 08:44:44 +00:00
|
|
|
));
|
|
|
|
|
2011-06-23 07:03:41 +00:00
|
|
|
array_push($data,array(
|
|
|
|
'id'=>'stgpool',
|
|
|
|
'name'=>'Storage Pool Info',
|
|
|
|
'state'=>'none',
|
|
|
|
'attr_id'=>'1',
|
|
|
|
'attr_href'=>URL::Site('stgpool'),
|
|
|
|
));
|
|
|
|
|
2012-12-13 02:19:58 +00:00
|
|
|
array_push($data,array(
|
|
|
|
'id'=>'server',
|
|
|
|
'name'=>'Server Info',
|
|
|
|
'state'=>'none',
|
|
|
|
'attr_id'=>'1',
|
|
|
|
'attr_href'=>URL::Site('server'),
|
|
|
|
));
|
|
|
|
|
2012-11-30 02:03:26 +00:00
|
|
|
array_push($data,array(
|
|
|
|
'id'=>'volume',
|
|
|
|
'name'=>'Volume Info',
|
|
|
|
'state'=>'none',
|
|
|
|
'attr_id'=>'1',
|
|
|
|
'attr_href'=>URL::Site('volume'),
|
|
|
|
));
|
|
|
|
|
2012-11-26 05:57:18 +00:00
|
|
|
return parent::action_json($data);
|
2011-05-23 10:01:27 +00:00
|
|
|
}
|
|
|
|
}
|
2011-01-17 05:33:55 +00:00
|
|
|
?>
|