5include_once 
'./Services/User/classes/class.ilObjUser.php';
 
    6include_once 
"Services/Mail/classes/class.ilMail.php";
 
    7include_once 
'Services/Mail/classes/class.ilMailGlobalServices.php';
 
    8include_once 
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
 
   54                $ilMainMenu->setActive(
"desktop");
 
   55                $this->lng->loadLanguageModule(
"pdesk");
 
   56                $this->lng->loadLanguageModule(
"pd"); 
 
   59                if (
$GLOBALS[
'DIC'][
'ilUser']->getId() == ANONYMOUS_USER_ID)
 
   61                        $this->
ilias->raiseError($this->lng->txt(
"msg_not_available_for_anon"),$this->ilias->error_obj->MESSAGE);
 
   63                $this->cmdClass = 
$_GET[
'cmdClass'];
 
   65                $this->ctrl->saveParameter($this, array(
"view"));
 
   79                $next_class = $this->ctrl->getNextClass();
 
   80                $this->ctrl->setReturn($this, 
"show");
 
   85                if (isset(
$_GET[
'PDHistory']) && 
$_GET[
'PDHistory'])
 
   93                        case "ilbookmarkadministrationgui":
 
  100                                include_once(
"./Services/Bookmarks/classes/class.ilBookmarkAdministrationGUI.php");
 
  104                                $ret = $this->ctrl->forwardCommand($bookmark_gui);
 
  108                        case "ilpersonalprofilegui":
 
  111                                include_once(
"./Services/User/classes/class.ilPersonalProfileGUI.php");
 
  113                                $ret = $this->ctrl->forwardCommand($profile_gui);
 
  117                        case "ilpersonalsettingsgui":
 
  120                                include_once(
"./Services/User/classes/class.ilPersonalSettingsGUI.php");
 
  122                                $ret = $this->ctrl->forwardCommand($settings_gui);
 
  127                                include_once(
'./Services/User/classes/class.ilObjUserGUI.php');
 
  129                                $ret = $this->ctrl->forwardCommand($user_gui);
 
  132                        case 'ilcalendarpresentationgui':
 
  135                                $this->tpl->setTitle($this->lng->txt(
"calendar"));
 
  137                                include_once(
'./Services/Calendar/classes/class.ilCalendarPresentationGUI.php');
 
  139                                $ret = $this->ctrl->forwardCommand($cal);
 
  154                                include_once(
"./Services/Notes/classes/class.ilPDNotesGUI.php");
 
  156                                $ret = $this->ctrl->forwardCommand($pd_notes_gui);
 
  163                                include_once(
"./Services/News/classes/class.ilPDNewsGUI.php");
 
  165                                $ret = $this->ctrl->forwardCommand($pd_news_gui);
 
  168                        case "illearningprogressgui":
 
  171                                include_once 
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
 
  173                                $ret = $this->ctrl->forwardCommand($new_gui);
 
  180                                include_once(
"./Services/Block/classes/class.ilColumnGUI.php");
 
  187                                require_once 
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
 
  190                                        $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'), 
$ilErr->MESSAGE);
 
  195                                $this->tpl->setTitle($this->lng->txt(
'mail_addressbook'));
 
  197                                require_once 
'Services/Contact/classes/class.ilContactGUI.php';
 
  201                        case 'ilpersonalworkspacegui':          
 
  204                                include_once 
'Services/PersonalWorkspace/classes/class.ilPersonalWorkspaceGUI.php';
 
  206                                $ret = $this->ctrl->forwardCommand($wsgui);                                                             
 
  210                        case 'ilportfoliorepositorygui':
 
  213                                include_once 
'Modules/Portfolio/classes/class.ilPortfolioRepositoryGUI.php';
 
  215                                $ret = $this->ctrl->forwardCommand($pfgui);                             
 
  219                        case 'ilpersonalskillsgui':                             
 
  221                                include_once 
'./Services/Skill/classes/class.ilPersonalSkillsGUI.php';
 
  224                                $ret = $this->ctrl->forwardCommand($skgui);
 
  228                        case 'ilbadgeprofilegui':               
 
  231                                include_once 
'./Services/Badge/classes/class.ilBadgeProfileGUI.php';
 
  233                                $ret = $this->ctrl->forwardCommand($bgui);
 
  244                                $cmd = $this->ctrl->getCmd(
"show");
 
  259                        foreach(
$_GET as $key => $val)
 
  261                                if(substr($key, 0, strlen(
'param_')) == 
'param_')
 
  263                                        $this->ctrl->setParameterByClass(
$_GET[
'redirectClass'], substr($key, strlen(
'param_')), $val);
 
  275                $this->tpl->getStandardTemplate();
 
  284                include_once(
"Services/Block/classes/class.ilBlockSetting.php");
 
  288                $this->pd_tpl = 
new ilTemplate(
"tpl.usr_personaldesktop.html", 
true, 
true, 
"Services/PersonalDesktop");
 
  294                $this->tpl->setTitle($this->lng->txt(
"overview"));
 
  301                if(count($this->action_menu->getItems()))
 
  309                        $this->action_menu->setAsynch(
false);
 
  310                        $this->action_menu->setAsynchUrl(
'');
 
  311                        $this->action_menu->setListTitle(
$lng->txt(
'actions'));
 
  312                        $this->action_menu->setId(
'act_pd');
 
  313                        $this->action_menu->setSelectionHeaderClass(
'small');
 
  314                        $this->action_menu->setItemLinkClass(
'xsmall');
 
  315                        $this->action_menu->setLinksMode(
'il_ContainerItemCommand2');
 
  317                        $this->action_menu->setUseImages(
false);
 
  319                        $htpl = 
new ilTemplate(
'tpl.header_action.html', 
true, 
true, 
'Services/Repository');
 
  320                        $htpl->setVariable(
'ACTION_DROP_DOWN', $this->action_menu->getHTML());
 
  322                        $tpl->setHeaderActionMenu($htpl->get());
 
  334                global 
$ilCtrl, $ilPluginAdmin;
 
  336                include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  340                if (
$ilCtrl->getNextClass() == 
"ilcolumngui" &&
 
  371                                        include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
 
  373                                                array(
"personal_desktop_gui" => $this));
 
  374                                        if (!$uip->replaced())
 
  393                include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  402                if (
$ilCtrl->getNextClass() == 
"ilcolumngui" &&
 
  415                                include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
 
  417                                        array(
"personal_desktop_gui" => $this));
 
  418                                if (!$uip->replaced())
 
  436                include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  445                if (
$ilCtrl->getNextClass() == 
"ilcolumngui" &&
 
  458                                include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
 
  460                                        array(
"personal_desktop_gui" => $this));
 
  461                                if (!$uip->replaced())
 
  475                $this->pd_tpl = 
new ilTemplate(
"tpl.usr_personaldesktop.html", 
true, 
true, 
"Services/PersonalDesktop");
 
  476                $this->tpl->getStandardTemplate();
 
  482                $this->tpl->setTitle($this->lng->txt(
"personal_desktop"));
 
  493                if (strlen($err_msg) > 0)
 
  495                        $this->
ilias->raiseError($this->lng->txt($err_msg),$this->ilias->error_obj->MESSAGE);
 
  505                include_once(
"Services/Mail/classes/class.ilPDSysMessageBlockGUI.php");
 
  507                return $sys_block->getHTML();
 
  523                        $key_sorta = explode(
";", $key_sort);
 
  525                        $multikeys = array_keys($array);
 
  526                        $keys = array_keys($array[$multikeys[0]]);
 
  528                        for($m=0; $m < count($key_sorta); $m++) {
 
  529                                $nkeys[$m] = trim($key_sorta[$m]);
 
  531                        $n += count($key_sorta);
 
  533                        for($i=0; $i < count($keys); $i++){
 
  534                                if(!in_array($keys[$i], $key_sorta)) {
 
  535                                        $nkeys[
$n] = $keys[$i];
 
  540                        for($u=0;$u<count($array); $u++) {
 
  541                                $arr = $array[$multikeys[$u]];
 
  542                                for($s=0; $s<count($nkeys); $s++) {
 
  544                                        $output[$multikeys[$u]][$k] = $array[$multikeys[$u]][$k];
 
  559                $ilHelp->setScreenIdComponent(
"pd");
 
  565        public function jumpToMemberships()
 
  572                if(!
$ilSetting->get(
'disable_my_memberships'))
 
  574                        require_once 
'Services/PersonalDesktop/classes/class.ilPDSelectedItemsBlockGUI.php';
 
  585        public function jumpToSelectedItems()
 
  594                        require_once 
'Services/PersonalDesktop/classes/class.ilPDSelectedItemsBlockGUI.php';
 
  607                $this->ctrl->redirectByClass(
"ilpersonalprofilegui");
 
  616                        $this->ctrl->setParameterByClass(
"ilportfoliorepositorygui", 
"shr_id", $_REQUEST[
"dsh"]);
 
  623                        $this->ctrl->setParameterByClass(
"ilobjportfoliogui", 
"prt_id", (
int)
$_GET[
"prt_id"]);
 
  624                        $this->ctrl->setParameterByClass(
"ilobjportfoliogui", 
"gtp", (
int)
$_GET[
"gtp"]);
 
  625                        $this->ctrl->redirectByClass(array(
"ilportfoliorepositorygui", 
"ilobjportfoliogui"), 
"preview");
 
  629                        $this->ctrl->redirectByClass(
"ilportfoliorepositorygui", 
$cmd);
 
  638                $this->ctrl->redirectByClass(
"ilpersonalsettingsgui");
 
  646                if ($this->
ilias->getSetting(
"disable_bookmarks"))
 
  653                $this->ctrl->redirectByClass(
"ilbookmarkadministrationgui");
 
  661                if ($this->
ilias->getSetting(
'disable_notes'))
 
  668                $this->ctrl->redirectByClass(
"ilpdnotesgui");                   
 
  676                if ($this->
ilias->getSetting(
'disable_comments'))
 
  683                $this->ctrl->redirectByClass(
"ilpdnotesgui", 
"showPublicComments");
 
  691                $this->ctrl->redirectByClass(
"ilpdnewsgui");
 
  699                $this->ctrl->redirectByClass(
"illearningprogressgui");
 
  707                $this->ctrl->redirectByClass(
"ilcalendarpresentationgui");
 
  715                $this->ctrl->redirectByClass(array(
'ilpersonaldesktopgui', 
'ilcontactgui'));
 
  727                        $this->ctrl->setParameterByClass(
"ilpersonalworkspacegui", 
"shr_id", $_REQUEST[
"dsh"]);
 
  731                if($_REQUEST[
"wsp_id"])
 
  733                        $this->ctrl->setParameterByClass(
"ilpersonalworkspacegui", 
"wsp_id", (
int)$_REQUEST[
"wsp_id"]);
 
  738                        $this->ctrl->setParameterByClass(
"ilpersonalworkspacegui", 
"gtp", (
int)$_REQUEST[
"gtp"]);
 
  741                $this->ctrl->redirectByClass(
"ilpersonalworkspacegui", 
$cmd);
 
  749                $this->ctrl->redirectByClass(
"ilbadgeprofilegui");
 
  757                $this->ctrl->redirectByClass(
"ilpersonalskillsgui");
 
  762                $stored_classes = array(
'ilpersonaldesktopgui',
 
  763                                                                'ilpersonalprofilegui',
 
  765                                                                'ilcalendarpresentationgui',
 
  766                                                                'ilbookmarkadministrationgui',
 
  767                                                                'illearningprogressgui');
 
  769                if(isset(
$_SESSION[
'il_pd_history']) and in_array(
$_SESSION[
'il_pd_history'],$stored_classes))
 
  775                        $this->ctrl->getNextClass($this);
 
  781                $this->cmdClass = $a_class;
 
  791                if ($pd_set->get(
"enable_block_moving"))
 
  793                        $a_column_gui->setEnableMovement(
true);
 
  795                $a_column_gui->setActionMenu($this->action_menu);
 
  803                $this->tpl->setTitle($this->lng->txt(
"personal_desktop"));
 
An exception for terminatinating execution or to throw for unit testing.
show()
returns the content of IniFile @access public
User interface class for advanced drop-down selection lists.
static preloadPDBlockSettings()
Preload pd info.
GUI class for personal bookmark administration.
Column user interface class.
const LP_CONTEXT_PERSONAL_DESKTOP
Class ilObjUserTrackingGUI.
const VIEW_SELECTED_ITEMS
const VIEW_MY_MEMBERSHIPS
BlockGUI class for System Messages block on personal desktop.
GUI class for personal desktop.
getCenterColumnHTML()
Display center column.
jumpToSkills()
Jump to personal skills.
displayHeader()
display header and locator
getRightColumnHTML()
Display right column.
jumpToLP()
workaround for menu in calendar only
getStandardTemplates()
get standard templates
jumpToNotes()
workaround for menu in calendar only
getLeftColumnHTML()
Display left column.
jumpToBadges()
Jump to badges.
jumpToComments()
workaround for menu in calendar only
multiarray_sort($array, $key_sort)
Returns the multidimenstional sorted array.
jumpToCalendar()
Jump to calendar.
jumpToNews()
workaround for menu in calendar only
redirect()
directly redirects a call
jumpToContacts()
Jump to contacts.
executeCommand()
execute command
jumpToProfile()
workaround for menu in calendar only
__storeLastClass($a_class)
jumpToBookmarks()
workaround for menu in calendar only
setTabs()
set personal desktop tabs
jumpToSettings()
workaround for menu in calendar only
initColumn($a_column_gui)
displaySystemMessages()
Display system messages.
removeMember()
copied from usr_personaldesktop.php
jumpToWorkspace()
Jump to personal workspace.
GUI class for personal profile.
GUI class for personal profile.
Personal skills GUI class.
GUI class for personal workspace.
Portfolio repository gui class.
special template class to simplify handling of ITX/PEAR
UI interface hook processor.
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static redirect($a_script)
http redirect to other script
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static infoPanel($a_keep=true)
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\s+" &#(? foreach( $entity_files as $file) $output
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
redirection script todo: (a better solution should control the processing via a xml file)