summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 85ee8da)
raw | patch | inline | side by side (parent: 85ee8da)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Mar 2010 11:20:10 +0000 (11:20 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Mar 2010 11:20:10 +0000 (11:20 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15796 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_pluglist.inc | patch | blob | history |
index 7a8ebc5508a25786b5604cb605035c9bbbfc725b..a680868dbe83ee199d11ce637b978ae1778d507e 100644 (file)
{
$this->pluginList = array();
- // First load Menu Plugins
+ // 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'])){
foreach($this->config->data['MENU'] as $section => $plugins){
foreach($plugins as $id => $plug){
}
}
- // Now register pathMenu plugins
+ // Now load the path menu and try to register the plugins in the pluglist
+ // if this fails for some reason, then remove the plugin from the menu.
if(isset($this->config->data['PATHMENU'])){
foreach($this->config->data['PATHMENU'] as $id => $plugin){
if(!$this->registerPlugin($plugin)){
if(!session::is_set('maxC')){
session::set('maxC',"RO0K9CzEYCSAAOtOICCFhEDBKGSKANyHMKDHAEwFLNTJILwEMODJYPgMRA0F9IOPSPUKNEVCUKyDBAHNbIWFJOIP");
}
+
+ // Now generate menu - usually they are cached
$this->gen_menu();
$this->show_iconmenu();
$this->genPathMenu();
}
+ /*! \brief Tries to register a plugin in the pluglist
+ * Checks existence and ACL for the given plugin.
+ * Returns true in case of success else false.
+ */
function registerPlugin($plug)
{
global $class_mapping;
}
+ /*! \brieg Generates and the path menu (the one on the upper right) and keeps
+ * the generated HTML content, so we are not forced to generate it on every
+ * page request.
+ * (See <pathMenu> of your gosa.conf)
+ */
function genPathMenu()
{
if(empty($this->pathMenu)){
"\n </li>".
"\n <li class='left'>Welcome to GOsa</li>";
+ // Check if we've at least one entry defined ih the pathmenu
if(isset($this->config->data['PATHMENU'])){
$cfg= &$this->config->data['PATHMENU'];
$rcfg = array_reverse($cfg);
}
+ /*! \brief Returns additional info for a given class name, like
+ * plugin-icon, title, description and the index of the element
+ in the pluglist which uses this class.
+ */
function getPlugData($class)
{
global $class_mapping;