From dfbae658fd17f9ed4e02f6359ea56868812dd811 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Jun 2010 08:36:07 +0000 Subject: [PATCH] Added pluginStatus plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18876 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../generic/dashBoard/class_dashBoard.inc | 44 ++++++++++++++++--- .../plugins/generic/dashBoard/dashBoard.tpl | 7 ++- .../dbPluginStatus/class_dbPluginStatus.inc | 12 +++++ 3 files changed, 56 insertions(+), 7 deletions(-) create mode 100644 gosa-core/plugins/generic/dashBoard/dbPluginStatus/class_dbPluginStatus.inc diff --git a/gosa-core/plugins/generic/dashBoard/class_dashBoard.inc b/gosa-core/plugins/generic/dashBoard/class_dashBoard.inc index 6dce8e7fa..de795136b 100644 --- a/gosa-core/plugins/generic/dashBoard/class_dashBoard.inc +++ b/gosa-core/plugins/generic/dashBoard/class_dashBoard.inc @@ -2,18 +2,50 @@ class dashBoard extends plugin { - var $plHeadline = 'dashBoard.png'; - var $plDescription = 'dashBoard.png'; - var $plShortIcon = 'dashBoard.png'; - var $plIcon = 'dashBoard.png'; + var $plHeadline = 'Dash board'; + var $plDescription = 'Dash board'; + var $plShortIcon = 'dashBoard.png'; + var $plIcon = 'plugin.png'; + function __construct($config) + { + plugin::plugin($config, NULL); + + // Instantiate child classes + $this->dbPluginStatus = new dbPluginStatus($config); + } function execute() { $smarty = get_smarty(); - + $smarty->assign('dbPluginStatus', $this->dbPluginStatus->execute()); return($smarty->fetch(get_template_path('dashBoard.tpl', TRUE))); - + + } + + function check() + { + $messages = plugin::check(); + $messages = array_merge($this->dbPluginStatus->check()); + return($messages); + } + + function save_object() + { + plugin::save_object(); + $this->dbPluginStatus->save_object(); + } + + function save() + { + plugin::save(); + $this->dbPluginStatus->save(); + } + + function remove_from_parent() + { + plugin::remove_from_parent(); + $this->dbPluginStatus->remove_from_parent(); } } diff --git a/gosa-core/plugins/generic/dashBoard/dashBoard.tpl b/gosa-core/plugins/generic/dashBoard/dashBoard.tpl index 6d09a8fa8..5b3847d16 100644 --- a/gosa-core/plugins/generic/dashBoard/dashBoard.tpl +++ b/gosa-core/plugins/generic/dashBoard/dashBoard.tpl @@ -4,6 +4,7 @@ +

{t}Channels{/t}

@@ -12,7 +13,9 @@ - +

{t}Plugin status{/t}

+ + {$dbPluginStatus} @@ -23,6 +26,7 @@ +

{t}Advices{/t}

@@ -31,6 +35,7 @@ +

{t}Information{/t}

diff --git a/gosa-core/plugins/generic/dashBoard/dbPluginStatus/class_dbPluginStatus.inc b/gosa-core/plugins/generic/dashBoard/dbPluginStatus/class_dbPluginStatus.inc new file mode 100644 index 000000000..80fa091c0 --- /dev/null +++ b/gosa-core/plugins/generic/dashBoard/dbPluginStatus/class_dbPluginStatus.inc @@ -0,0 +1,12 @@ + -- 2.30.2