
Öffentliche Methoden | |
| show () | |
Öffentliche Attribute | |
| $defaultSubAction = 'show' | |
Definiert in Zeile 30 der Datei TitleAction.class.php.
| TitleAction::show | ( | ) |
Fuellen der Variablen und Anzeigen der Titelleiste
Definiert in Zeile 42 der Datei TitleAction.class.php.
Benutzt Action::$db, Action::forward(), Session::get(), Session::getDatabase(), Session::getProject(), Session::getProjectLanguage(), Session::getProjectModel(), Session::getUser(), lang(), Action::setTemplateVar() und Html::url().
00043 { 00044 // Seite ändert sich nur 1x pro Session 00045 $user = Session::getUser(); 00046 // $this->lastModified( $user->loginDate ); 00047 00048 $user = Session::getUser(); 00049 // if ( is_object($user) && isset($user->loginDate) ) 00050 // $this->lastModified( $user->loginDate ); 00051 00052 $this->setTemplateVar('css_body_class','title'); 00053 00054 $db = Session::getDatabase(); 00055 // $this->setTemplateVar('dbid' ,$db->id ); 00056 $this->setTemplateVar('dbname',$db->conf['comment'] ); 00057 // $this->setTemplateVar('dbdescription',$db->conf['comment'] ); 00058 00059 $user = Session::getUser(); 00060 $this->setTemplateVar('username' ,$user->name ); 00061 $this->setTemplateVar('userfullname',$user->fullname); 00062 00063 $project = Session::getProject(); 00064 if ( is_object($project) ) 00065 $this->setTemplateVar('projectname',$project->name); 00066 00067 $language = Session::getProjectLanguage(); 00068 if ( is_object($language) ) 00069 $this->setTemplateVar('languagename',$language->name); 00070 00071 $model = Session::getProjectModel(); 00072 if ( is_object($model) ) 00073 $this->setTemplateVar('modelname',$model->name); 00074 00075 // Urls zum Benutzerprofil und zum Abmelden 00076 $this->setTemplateVar('profile_url',Html::url( 'profile' )); 00077 $this->setTemplateVar('logout_url' ,Html::url( 'index','logout' )); 00078 00079 if ( Session::get('showtree') ) 00080 { 00081 $this->setTemplateVar('showtree_url' ,Html::url('index','hidetree') ); 00082 $this->setTemplateVar('showtree_text',lang('GLOBAL_HIDETREE') ); 00083 } 00084 else 00085 { 00086 $this->setTemplateVar('showtree_url' ,Html::url('index','showtree') ); 00087 $this->setTemplateVar('showtree_text',lang('GLOBAL_SHOWTREE') ); 00088 } 00089 00090 $this->forward( 'title' ); 00091 }
| TitleAction::$defaultSubAction = 'show' |
Standard-Subaction String
Definiert in Zeile 36 der Datei TitleAction.class.php.
1.5.8