Code

Execute parents execute() method child classes of plugin
[gosa.git] / gosa-core / include / class_pathNavigator.inc
1 <?php
3 class pathNavigator
4 {
6   static function registerPlugin($class)
7   {
8     $str = "";
9     if($class instanceOf management && isset($class->plHeadline)){
10       $str = "<b>"._($class->plHeadline)."</b>";
11     }elseif($class instanceOf plugin && isset($class->plHeadline)){
12       $str = _($class->plHeadline);
13     }elseif($class instanceOf plugin && !isset($class->plHeadline)){
14       $str = "{".get_class($class)."}";
15     }elseif($class instanceOf tabs){
16       $str = $class->dn;
17     }
18     
19     if(!empty($str)){
20       $cur = session::get('pathNavigator::position');
21       $cur.= "<li class='left'>{$str}</li>";
22       session::set('pathNavigator::position', $cur);
23     }
24   }
26   static function getCurrentPath()
27   {
28     $path = session::get('pathNavigator::position');
29     if(empty($path)){
30       $path = "<li class='left'>Welcome to GOsa</li>";
31     }
32     return($path);
33   }
35   static function clear()
36   {
37     session::set('pathNavigator::position','');
38   }
39 }
41 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
42 ?>