Code

Added pluginStatus plugin
[gosa.git] / gosa-core / plugins / generic / dashBoard / class_dashBoard.inc
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     function __construct($config)
11     {
12         plugin::plugin($config, NULL);
14         // Instantiate child classes
15         $this->dbPluginStatus = new dbPluginStatus($config);
16     }
18     function execute()
19     {
20         $smarty = get_smarty();
21         $smarty->assign('dbPluginStatus', $this->dbPluginStatus->execute());
22         return($smarty->fetch(get_template_path('dashBoard.tpl', TRUE)));
24     }
26     function check()
27     {
28         $messages = plugin::check();
29         $messages = array_merge($this->dbPluginStatus->check());    
30         return($messages);
31     }
33     function save_object()
34     {
35         plugin::save_object();
36         $this->dbPluginStatus->save_object();
37     }
39     function save()
40     {
41         plugin::save();
42         $this->dbPluginStatus->save();
43     }
45     function remove_from_parent()
46     {
47         plugin::remove_from_parent();
48         $this->dbPluginStatus->remove_from_parent();
49     }
50 }
52 ?>