X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_config.inc;h=e50de7e22e022610ba36d91feb7e65cc632abcb2;hb=c9bd6c4d92532063a9dd8df3cfd20740d43e5841;hp=062bb253103752117ede64fd333f700828ccc997;hpb=45fa904199a0f72c12048b452bbd6590dcbfeb60;p=gosa.git diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 062bb2531..e50de7e22 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -974,7 +974,9 @@ class config { } - /*! Search for a configuration setting in different categories + /*! Outdated - try to use pluginEnabled, boolValueIsTrue or get_cfg_value instead. + * + * (Search for a configuration setting in different categories * * Searches for the value of a given key in the configuration data. * Optionally the list of categories to search (tabs, main, locations) can @@ -984,6 +986,7 @@ class config { * \code * $postcmd = $this->config->search(get_class($this), "POSTCOMMAND", array("menu", "tabs")); * \endcode + * ) * * */ function search($class, $value, $categories= "") @@ -1006,6 +1009,14 @@ class config { return (""); } + + /*! \brief Check whether a plugin is activated or not + */ + function pluginEnabled($class){ + $tmp = $this->search($class, "CLASS",array('menu','tabs')); + return(!empty($tmp)); + } + /*! \brief Get a configuration value from the config *