5 include_once
'./Services/User/classes/class.ilObjUser.php';
6 include_once
"Services/Mail/classes/class.ilMail.php";
7 include_once
'Services/Mail/classes/class.ilMailGlobalServices.php';
8 include_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
50 $ilCtrl->setContext($ilUser->getId(),
53 $ilMainMenu->setActive(
"desktop");
54 $this->lng->loadLanguageModule(
"pdesk");
55 $this->lng->loadLanguageModule(
"pd");
58 if (
$_SESSION[
"AccountId"] == ANONYMOUS_USER_ID)
60 $this->
ilias->raiseError($this->lng->txt(
"msg_not_available_for_anon"),$this->
ilias->error_obj->MESSAGE);
62 $this->cmdClass =
$_GET[
'cmdClass'];
76 $next_class = $this->ctrl->getNextClass();
77 $this->ctrl->setReturn($this,
"show");
82 if (isset(
$_GET[
'PDHistory']) &&
$_GET[
'PDHistory'])
90 case "ilbookmarkadministrationgui":
91 if ($ilSetting->get(
'disable_bookmarks'))
97 include_once(
"./Services/Bookmarks/classes/class.ilBookmarkAdministrationGUI.php");
99 if ($bookmark_gui->getMode() ==
'tree') {
105 $ret =& $this->ctrl->forwardCommand($bookmark_gui);
109 case "ilpersonalprofilegui":
112 include_once(
"./Services/User/classes/class.ilPersonalProfileGUI.php");
114 $ret =& $this->ctrl->forwardCommand($profile_gui);
118 case "ilpersonalsettingsgui":
121 include_once(
"./Services/User/classes/class.ilPersonalSettingsGUI.php");
123 $ret =& $this->ctrl->forwardCommand($settings_gui);
128 include_once(
'./Services/User/classes/class.ilObjUserGUI.php');
130 $ret =& $this->ctrl->forwardCommand($user_gui);
133 case 'ilcalendarpresentationgui':
136 $this->tpl->setTitle($this->lng->txt(
"calendar"));
138 include_once(
'./Services/Calendar/classes/class.ilCalendarPresentationGUI.php');
140 $ret = $this->ctrl->forwardCommand($cal);
146 if ($ilSetting->get(
'disable_notes'))
155 include_once(
"./Services/Notes/classes/class.ilPDNotesGUI.php");
157 $ret =& $this->ctrl->forwardCommand($pd_notes_gui);
164 include_once(
"./Services/News/classes/class.ilPDNewsGUI.php");
166 $ret =& $this->ctrl->forwardCommand($pd_news_gui);
169 case "illearningprogressgui":
172 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
174 $ret =& $this->ctrl->forwardCommand($new_gui);
181 include_once(
"./Services/Block/classes/class.ilColumnGUI.php");
188 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
191 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'), $ilErr->MESSAGE);
196 $this->tpl->setTitle($this->lng->txt(
'mail_addressbook'));
198 require_once
'Services/Contact/classes/class.ilContactGUI.php';
202 case 'ilpersonalworkspacegui':
205 include_once
'Services/PersonalWorkspace/classes/class.ilPersonalWorkspaceGUI.php';
207 $ret = $this->ctrl->forwardCommand($wsgui);
211 case 'ilportfoliorepositorygui':
214 include_once
'Modules/Portfolio/classes/class.ilPortfolioRepositoryGUI.php';
216 $ret = $this->ctrl->forwardCommand($pfgui);
220 case 'ilpersonalskillsgui':
222 include_once
'./Services/Skill/classes/class.ilPersonalSkillsGUI.php';
225 $ret = $this->ctrl->forwardCommand($skgui);
236 $cmd = $this->ctrl->getCmd(
"show");
251 foreach(
$_GET as $key => $val)
253 if(substr($key, 0, strlen(
'param_')) ==
'param_')
255 $this->ctrl->setParameterByClass(
$_GET[
'redirectClass'], substr($key, strlen(
'param_')), $val);
267 $this->tpl->getStandardTemplate();
279 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
280 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
289 include_once(
"Services/Block/classes/class.ilBlockSetting.php");
293 $this->pd_tpl =
new ilTemplate(
"tpl.usr_personaldesktop.html",
true,
true,
"Services/PersonalDesktop");
294 $this->tpl->getStandardTemplate();
299 $this->tpl->setTitle($this->lng->txt(
"overview"));
306 if(count($this->action_menu->getItems()))
314 $this->action_menu->setAsynch(
false);
315 $this->action_menu->setAsynchUrl(
'');
316 $this->action_menu->setListTitle($lng->txt(
'actions'));
317 $this->action_menu->setId(
'act_pd');
318 $this->action_menu->setSelectionHeaderClass(
'small');
319 $this->action_menu->setItemLinkClass(
'xsmall');
320 $this->action_menu->setLinksMode(
'il_ContainerItemCommand2');
322 $this->action_menu->setUseImages(
false);
324 $htpl =
new ilTemplate(
'tpl.header_action.html',
true,
true,
'Services/Repository');
325 $htpl->setVariable(
'ACTION_DROP_DOWN', $this->action_menu->getHTML());
327 $tpl->setHeaderActionMenu($htpl->get());
339 global
$ilCtrl, $ilPluginAdmin;
341 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
345 if ($ilCtrl->getNextClass() ==
"ilcolumngui" &&
348 $html = $ilCtrl->forwardCommand($column_gui);
352 if (!$ilCtrl->isAsynch())
361 $html = $ilCtrl->forwardCommand($column_gui);
368 $html = $ilCtrl->forwardCommand($column_gui);
376 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
378 array(
"personal_desktop_gui" => $this));
379 if (!$uip->replaced())
381 $html = $ilCtrl->getHTML($column_gui);
398 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
407 if ($ilCtrl->getNextClass() ==
"ilcolumngui" &&
411 $html = $ilCtrl->forwardCommand($column_gui);
415 if (!$ilCtrl->isAsynch())
420 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
422 array(
"personal_desktop_gui" => $this));
423 if (!$uip->replaced())
425 $html = $ilCtrl->getHTML($column_gui);
441 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
450 if ($ilCtrl->getNextClass() ==
"ilcolumngui" &&
454 $html = $ilCtrl->forwardCommand($column_gui);
458 if (!$ilCtrl->isAsynch())
463 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
465 array(
"personal_desktop_gui" => $this));
466 if (!$uip->replaced())
468 $html = $ilCtrl->getHTML($column_gui);
480 $this->pd_tpl =
new ilTemplate(
"tpl.usr_personaldesktop.html",
true,
true,
"Services/PersonalDesktop");
481 $this->tpl->getStandardTemplate();
487 $this->tpl->setTitle($this->lng->txt(
"personal_desktop"));
498 if (strlen($err_msg) > 0)
500 $this->
ilias->raiseError($this->lng->txt($err_msg),$this->
ilias->error_obj->MESSAGE);
510 include_once(
"Services/Mail/classes/class.ilPDSysMessageBlockGUI.php");
512 return $sys_block->getHTML();
528 $key_sorta = explode(
";", $key_sort);
530 $multikeys = array_keys($array);
531 $keys = array_keys($array[$multikeys[0]]);
533 for($m=0; $m < count($key_sorta); $m++) {
534 $nkeys[$m] = trim($key_sorta[$m]);
536 $n += count($key_sorta);
538 for($i=0; $i < count($keys); $i++){
539 if(!in_array($keys[$i], $key_sorta)) {
540 $nkeys[
$n] = $keys[$i];
545 for($u=0;$u<count($array); $u++) {
546 $arr = $array[$multikeys[$u]];
547 for($s=0; $s<count($nkeys); $s++) {
549 $output[$multikeys[$u]][$k] = $array[$multikeys[$u]][$k];
564 $ilHelp->setScreenIdComponent(
"pd");
570 public function jumpToMemberships()
577 if(!$ilSetting->get(
'disable_my_memberships'))
579 require_once
'Services/PersonalDesktop/classes/class.ilPDSelectedItemsBlockGUI.php';
589 public function jumpToSelectedItems()
596 if(!$ilSetting->get(
'disable_my_offers'))
598 require_once
'Services/PersonalDesktop/classes/class.ilPDSelectedItemsBlockGUI.php';
610 $this->ctrl->redirectByClass(
"ilpersonalprofilegui");
619 $this->ctrl->setParameterByClass(
"ilportfoliorepositorygui",
"shr_id",
$_REQUEST[
"dsh"]);
626 $this->ctrl->setParameterByClass(
"ilobjportfoliogui",
"prt_id", (
int)
$_GET[
"prt_id"]);
627 $this->ctrl->setParameterByClass(
"ilobjportfoliogui",
"gtp", (
int)$_GET[
"gtp"]);
628 $this->ctrl->redirectByClass(array(
"ilportfoliorepositorygui",
"ilobjportfoliogui"),
"preview");
632 $this->ctrl->redirectByClass(
"ilportfoliorepositorygui",
$cmd);
641 $this->ctrl->redirectByClass(
"ilpersonalsettingsgui");
649 if ($this->
ilias->getSetting(
"disable_bookmarks"))
656 $this->ctrl->redirectByClass(
"ilbookmarkadministrationgui");
664 if ($this->
ilias->getSetting(
'disable_notes'))
671 $this->ctrl->redirectByClass(
"ilpdnotesgui");
679 $this->ctrl->redirectByClass(
"ilpdnewsgui");
687 $this->ctrl->redirectByClass(
"illearningprogressgui");
695 $this->ctrl->redirectByClass(
"ilcalendarpresentationgui");
703 $this->ctrl->redirectByClass(array(
'ilpersonaldesktopgui',
'ilcontactgui'));
715 $this->ctrl->setParameterByClass(
"ilpersonalworkspacegui",
"shr_id",
$_REQUEST[
"dsh"]);
721 $this->ctrl->setParameterByClass(
"ilpersonalworkspacegui",
"wsp_id", (
int)
$_REQUEST[
"wsp_id"]);
726 $this->ctrl->setParameterByClass(
"ilpersonalworkspacegui",
"gtp", (
int)
$_REQUEST[
"gtp"]);
729 $this->ctrl->redirectByClass(
"ilpersonalworkspacegui",
$cmd);
737 $this->ctrl->redirectByClass(
"ilpersonalskillsgui");
742 $stored_classes = array(
'ilpersonaldesktopgui',
743 'ilpersonalprofilegui',
745 'ilcalendarpresentationgui',
746 'ilbookmarkadministrationgui',
747 'illearningprogressgui');
749 if(isset(
$_SESSION[
'il_pd_history']) and in_array(
$_SESSION[
'il_pd_history'],$stored_classes))
755 $this->ctrl->getNextClass($this);
761 $this->cmdClass = $a_class;
771 if ($pd_set->get(
"enable_block_moving"))
773 $a_column_gui->setEnableMovement(
true);
775 $a_column_gui->setActionMenu($this->action_menu);
783 $this->tpl->setTitle($this->lng->txt(
"personal_desktop"));
jumpToSkills()
Jump to personal skills.
preloadPDBlockSettings()
Preload pd info.
getStandardTemplates()
get standard templates
GUI class for personal workspace.
jumpToLP()
workaround for menu in calendar only
initColumn($a_column_gui)
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
multiarray_sort($array, $key_sort)
Returns the multidimenstional sorted array.
getCenterColumnHTML()
Display center column.
jumpToWorkspace()
Jump to personal workspace.
BlockGUI class for System Messages block on personal desktop.
displaySystemMessages()
Display system messages.
UI interface hook processor.
const VIEW_MY_MEMBERSHIPS
jumpToContacts()
Jump to contacts.
jumpToBookmarks()
workaround for menu in calendar only
Portfolio repository gui class.
jumpToProfile()
workaround for menu in calendar only
& executeCommand()
execute command
setTabs()
set personal desktop tabs
Personal skills GUI class.
ilPersonalDesktopGUI()
constructor
Column user interface class.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
jumpToNotes()
workaround for menu in calendar only
special template class to simplify handling of ITX/PEAR
static infoPanel($a_keep=true)
redirection script todo: (a better solution should control the processing via a xml file) ...
__storeLastClass($a_class)
getRightColumnHTML()
Display right column.
GUI class for personal bookmark administration.
const LP_CONTEXT_PERSONAL_DESKTOP
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
const VIEW_SELECTED_ITEMS
User interface class for advanced drop-down selection lists.
jumpToCalendar()
Jump to calendar.
GUI class for personal profile.
getLeftColumnHTML()
Display left column.
jumpToSettings()
workaround for menu in calendar only
GUI class for personal desktop.
jumpToNews()
workaround for menu in calendar only
displayHeader()
display header and locator
redirect()
directly redirects a call
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
removeMember()
copied from usr_personaldesktop.php
static redirect($a_script)
http redirect to other script
Class ilObjUserTrackingGUI.
getTreeModeTemplates()
get tree mode templates
GUI class for personal profile.