1 <?php
3 class dashBoard extends plugin
4 {
5 var $plHeadline = 'Dash board';
6 var $plDescription = 'Dash board';
7 var $plShortIcon = 'dashBoard.png';
8 var $plIcon = 'plugin.png';
10 private $dbPluginStatus = NULL;
11 private $dbChannelStatus = NULL;
12 private $dbNotifications = NULL;
13 private $dbInformation = NULL;
15 function __construct($config)
16 {
17 plugin::plugin($config, NULL);
19 // Instantiate child classes
20 $this->dbPluginStatus = new dbPluginStatus($config);
21 $this->dbChannelStatus = new dbChannelStatus($config);
22 $this->dbNotifications = new dbNotifications($config);
23 $this->dbInformation = new dbInformation($config);
24 }
26 function execute()
27 {
28 $smarty = get_smarty();
29 $smarty->assign('dbPluginStatus', $this->dbPluginStatus->execute());
30 $smarty->assign('dbChannelStatus', $this->dbChannelStatus->execute());
31 $smarty->assign('dbNotifications', $this->dbNotifications->execute());
32 $smarty->assign('dbInformation', $this->dbInformation->execute());
33 return($smarty->fetch(get_template_path('dashBoard.tpl', TRUE)));
34 }
36 function check()
37 {
38 $messages = plugin::check();
39 $messages = array_merge($this->dbPluginStatus->check());
40 $messages = array_merge($this->dbChannelStatus->check());
41 $messages = array_merge($this->dbNotifications->check());
42 $messages = array_merge($this->dbInformation->check());
43 return($messages);
44 }
46 function save_object()
47 {
48 plugin::save_object();
49 $this->dbPluginStatus->save_object();
50 $this->dbChannelStatus->save_object();
51 $this->dbNotifications->save_object();
52 $this->dbInformation->save_object();
53 }
55 function save()
56 {
57 plugin::save();
58 $this->dbPluginStatus->save();
59 $this->dbChannelStatus->save();
60 $this->dbNotifications->save();
61 $this->dbInformation->save();
62 }
64 function remove_from_parent()
65 {
66 plugin::remove_from_parent();
67 $this->dbPluginStatus->remove_from_parent();
68 $this->dbChannelStatus->remove_from_parent();
69 $this->dbNotifications->remove_from_parent();
70 $this->dbInformation->remove_from_parent();
71 }
72 }
74 ?>