33     protected \ILIAS\PersonalWorkspace\InternalGUIService 
$gui;
    58         bool $a_is_portfolio = 
false,
    63         $this->
tabs = $DIC->tabs();
    64         $this->tpl = $DIC->ui()->mainTemplate();
    65         $this->
toolbar = $DIC->toolbar();
    66         $this->
user = $DIC->user();
    68         $ilCtrl = $DIC->ctrl();
    69         $lng = $DIC->language();
    71         $this->
ctrl = $ilCtrl;
    73         $this->node_id = $a_node_id;
    74         $this->access_handler = $a_access_handler;
    75         $this->is_portfolio = $a_is_portfolio;
    81         $this->gui = $DIC->personalWorkspace()->internal()->gui();
    87         $this->blocking_message = $a_val;
    99         $next_class = $this->
ctrl->getNextClass($this);
   100         $cmd = $this->
ctrl->getCmd();
   102         switch ($next_class) {
   103             case "ilmailsearchcoursesgui":
   104                 $ilTabs->setBackTarget(
   105                     $this->
lng->txt(
"back"),
   106                     $this->
ctrl->getLinkTarget($this, 
"share")
   109                 $this->
ctrl->setReturn($this, 
'share');
   110                 $this->
ctrl->forwardCommand($csearch);
   115             case "ilmailsearchgroupsgui":
   116                 $ilTabs->setBackTarget(
   117                     $this->
lng->txt(
"back"),
   118                     $this->
ctrl->getLinkTarget($this, 
"share")
   121                 $this->
ctrl->setReturn($this, 
'share');
   122                 $this->
ctrl->forwardCommand($gsearch);
   127             case "ilmailsearchgui":
   128                 $ilTabs->setBackTarget(
   129                     $this->
lng->txt(
"back"),
   130                     $this->
ctrl->getLinkTarget($this, 
"share")
   133                 $this->
ctrl->setReturn($this, 
'share');
   134                 $this->
ctrl->forwardCommand($usearch);
   139             case "ilsingleusersharegui":
   140                 $ilTabs->setBackTarget(
   141                     $this->
lng->txt(
"back"),
   142                     $this->
ctrl->getLinkTarget($this, 
"share")
   145                 $this->
ctrl->setReturn($this, 
'share');
   146                 $this->
ctrl->forwardCommand($ushare);
   151             case "ilpublicuserprofilegui":
   152                 $ilTabs->clearTargets();
   153                 $ilTabs->setBackTarget(
   154                     $this->
lng->txt(
"back"),
   155                     $this->
ctrl->getLinkTarget($this, 
"share")
   159                     $this->std_request->getUser()
   180         if (!$this->is_portfolio) {
   181             $obj_id = $this->access_handler->getTree()->lookupObjectId($this->node_id);
   211         $options[
"user"] = $this->
lng->txt(
"wsp_set_permission_single_user");
   214         if (
sizeof($grp_ids)) {
   215             $options[
"group"] = $this->
lng->txt(
"wsp_set_permission_group");
   219         if (
sizeof($crs_ids)) {
   220             $options[
"course"] = $this->
lng->txt(
"wsp_set_permission_course");
   224             $options[
"registered"] = $this->
lng->txt(
"wsp_set_permission_registered");
   227         if (
$ilSetting->get(
"enable_global_profiles")) {
   228             if (!$this->
getAccessHandler()->hasGlobalPasswordPermission($this->node_id)) {
   229                 $options[
"password"] = $this->
lng->txt(
"wsp_set_permission_all_password");
   233                 $options[
"all"] = $this->
lng->txt(
"wsp_set_permission_all");
   238         $actions->setOptions($options);
   239         $ilToolbar->addStickyItem($actions);
   241         $ilToolbar->setFormAction($this->
ctrl->getFormAction($this));
   244             $this->
lng->txt(
"add"),
   245             "addpermissionhandler"   246         )->submit()->toToolbar(
true);
   254         switch ($this->std_request->getAction()) {
   258                     $this->
ctrl->redirectByClass(
"ilsingleusersharegui");
   260                     $this->
ctrl->setParameterByClass(
"ilmailsearchgui", 
"ref", 
"wsp");
   261                     $this->
ctrl->redirectByClass(
"ilmailsearchgui");
   266                 $this->
ctrl->setParameterByClass(
"ilmailsearchgroupsgui", 
"ref", 
"wsp");
   267                 $this->
ctrl->redirectByClass(
"ilmailsearchgroupsgui");
   271                 $this->
ctrl->setParameterByClass(
"ilmailsearchcoursesgui", 
"ref", 
"wsp");
   272                 $this->
ctrl->redirectByClass(
"ilmailsearchcoursesgui");
   276                 $this->
getAccessHandler()->addMissingPermissionForObjects($this->node_id, [self::PERMISSION_REGISTERED]);
   277                 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"wsp_share_success"), 
true);
   278                 $this->
ctrl->redirect($this, 
"share");
   286                 $this->
getAccessHandler()->addMissingPermissionForObjects($this->node_id, [self::PERMISSION_ALL]);
   287                 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"wsp_permission_all_info"), 
true);
   288                 $this->
ctrl->redirect($this, 
"share");
   294         $obj_id = $this->std_request->getObjId();
   297             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"wsp_permission_removed"), 
true);
   300         $this->
ctrl->redirect($this, 
"share");
   306         $form->setFormAction($this->
ctrl->getFormAction($this));
   307         $form->setTitle($this->
lng->txt(
"wsp_set_permission_all_password"));
   311         $form->addItem($password);
   313         $form->addCommandButton(
'savepasswordform', $this->
lng->txt(
"save"));
   314         $form->addCommandButton(
'share', $this->
lng->txt(
"cancel"));
   332         if ($form->checkInput()) {
   335                 self::PERMISSION_ALL_PASSWORD,
   336                 md5($form->getInput(
"password"))
   338             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"wsp_permission_all_pw_info"), 
true);
   339             $this->
ctrl->redirect($this, 
"share");
   342         $form->setValuesByPost();
 
StandardGUIRequest $std_request
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
const PERMISSION_ALL_PASSWORD
 
__construct(int $a_node_id, $a_access_handler, bool $a_is_portfolio=false, string $a_footer="")
 
const PERMISSION_REGISTERED
 
setBackUrl(string $backurl)
Set Back Link URL. 
 
GUI class for public user profile presentation. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupTitle(int $obj_id)
 
setContent(string $a_html)
Sets content for standard template. 
 
ILIAS PersonalWorkspace InternalGUIService $gui
 
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template. 
 
setBlockingMessage(string $a_val)
 
ilGlobalTemplateInterface $tpl
 
showPasswordForm(ilPropertyFormGUI $a_form=null)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _getMembershipByType(int $a_usr_id, array $a_type, bool $a_only_member_role=false)
get membership by type Get course or group membership 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...