From 4040f8387d51a9275f9bfc2d162875639a249fb0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 2 Nov 2005 10:23:43 +0000 Subject: [PATCH] Added function which connects 'plugin id' with the "plugin value" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1788 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_pluglist.inc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index 26b71d707..f9867076e 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -28,6 +28,7 @@ class pluglist { var $dirlist= array(); var $ui= NULL; var $current= ""; + var $headlines = array(); function pluglist($config, $ui) { @@ -79,6 +80,22 @@ class pluglist { return (FALSE); } + function gen_headlines() + { + $ret = array(); + if(count($this->headlines) == 0){ + foreach($this->config->data['MENU'] as $headline => $plugins){ + foreach( $plugins as $id => $plug){ + $attrs = (get_class_vars($plug['CLASS'])); + $ret[$id]['HEADLINE'] = $headline; + $ret[$id]['NAME'] = _($attrs['plHeadline']); + } + } + $this->headlines = $ret; + } + return($this->headlines); + } + function gen_menu() { if ($this->menu == ""){ -- 2.30.2