Code

ReAdded info to pluglist
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Mar 2010 12:47:59 +0000 (12:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Mar 2010 12:47:59 +0000 (12:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15798 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_pluglist.inc

index d182ab3fc5d4c017e870965895165d7eec212ba6..f02db2cc42b37e9099ec52c7be4ff9c7c3bb854e 100644 (file)
@@ -33,7 +33,6 @@ class pluglist
 
   // Seems to be used in the help menu to generate an overview.
   var $headlines = array();
-
   // Remember stuff in here.
   var $silly_cache= array();
 
@@ -46,6 +45,9 @@ class pluglist
   var $menu= "";
   var $iconmenu= "";
 
+  // Classes plInfo list
+  var $info = array();
+
   function pluglist(&$config, &$ui)
   {
     $this->ui= &$ui;
@@ -57,6 +59,21 @@ class pluglist
   {
     $this->pluginList = array();
 
+               /* Fill info part of pluglist */
+               $classes= get_declared_classes();
+               foreach ($classes as $cname){
+                       $cmethods = get_class_methods($cname);
+                       if (in_array_ics('plInfo',$cmethods)){
+                               $this->info[$cname]= call_user_func(array($cname, 'plInfo'));
+                       }
+               }
+
+               /* Provide field for 'all' */
+               $this->info['all']= array();
+               $this->info['all']['plProvidedAcls']= array();
+               $this->info['all']['plDescription']= _("All objects in this category");
+               $this->info['all']['plSelfModify']= FALSE;
+
     // First load the menu plugins and try to register them in the pluglist
     //  if this fails for some reason, then remove the plugin from the menu.
     if(isset($this->config->data['MENU'])){