summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82d38fc)
raw | patch | inline | side by side (parent: 82d38fc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Mar 2010 12:41:19 +0000 (12:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Mar 2010 12:41:19 +0000 (12:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16449 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_pathNavigator.inc | patch | blob | history | |
gosa-core/include/class_plugin.inc | patch | blob | history |
index b9b37a4046f4d1e30757781c71ab86cd5481d5b0..cc280955a39345d54e9375f375fa364f65fda6ef 100644 (file)
static function registerPlugin($class)
{
+
$str = "";
+
+ // Display headline of management plugins
if($class instanceOf management && isset($class->plHeadline)){
$str= _($class->plHeadline);
- }elseif($class instanceOf plugin && isset($class->plHeadline)){
-# $str = _($class->plHeadline);
- }elseif($class instanceOf plugin && !isset($class->plHeadline)){
- $str = "{".get_class($class)."}";
- }elseif($class instanceOf tabs){
+ }
+
+ // Shown title of sub dialogs (They have no plHeadline set.)
+ if($class instanceOf plugin && !isset($class->plHeadline)){
+ if(empty($class->pathTitle)){
+ $str = "Missing: ".get_class($class);
+ }else{
+ $str = _($class->pathTitle);
+ }
+ }
+
+ // In case of tabs add the 'dn' of the entry
+ if($class instanceOf tabs){
$str = $class->dn;
- }elseif(is_string($class)){
+ }
+
+ // Simple string given
+ if(is_string($class)){
$str = $class;
}
index 75da65582e81a825d6c7f025f1a6907be8d07a3e..d0c7b8096bfd31744201bd048e780cee134e1764 100644 (file)
*/
class plugin
-{
+{
+ /*! \brief The title shown in path menu while this plugin is visible.
+ */
+ var $pathTitle = "";
+
/*!
\brief Reference to parent object