53    public function __construct($a_node_id, $a_access_handler, $a_is_portfolio = 
false, $a_footer = 
null)
 
   57        $this->tabs = 
$DIC->tabs();
 
   58        $this->tpl = 
$DIC[
"tpl"];
 
   59        $this->toolbar = 
$DIC->toolbar();
 
   60        $this->
user = $DIC->user();
 
   67        $this->node_id = $a_node_id;
 
   68        $this->access_handler = $a_access_handler;
 
   69        $this->is_portfolio = (bool) $a_is_portfolio;
 
   70        $this->footer = $a_footer;
 
   78        $next_class = $this->ctrl->getNextClass($this);
 
   79        $cmd = $this->ctrl->getCmd();
 
   81        switch ($next_class) {
 
   82            case "ilmailsearchcoursesgui":
 
   83                $ilTabs->setBackTarget(
 
   84                    $this->lng->txt(
"back"),
 
   85                    $this->ctrl->getLinkTarget($this, 
"share")
 
   87                include_once(
'Services/Contact/classes/class.ilMailSearchCoursesGUI.php');
 
   89                $this->ctrl->setReturn($this, 
'share');
 
   90                $this->ctrl->forwardCommand($csearch);
 
   95            case "ilmailsearchgroupsgui":
 
   96                $ilTabs->setBackTarget(
 
   97                    $this->lng->txt(
"back"),
 
   98                    $this->ctrl->getLinkTarget($this, 
"share")
 
  100                include_once(
'Services/Contact/classes/class.ilMailSearchGroupsGUI.php');
 
  102                $this->ctrl->setReturn($this, 
'share');
 
  103                $this->ctrl->forwardCommand($gsearch);
 
  108            case "ilmailsearchgui":
 
  109                $ilTabs->setBackTarget(
 
  110                    $this->lng->txt(
"back"),
 
  111                    $this->ctrl->getLinkTarget($this, 
"share")
 
  113                include_once(
'Services/Contact/classes/class.ilMailSearchGUI.php');
 
  115                $this->ctrl->setReturn($this, 
'share');
 
  116                $this->ctrl->forwardCommand($usearch);
 
  121            case "ilsingleusersharegui":
 
  122                $ilTabs->setBackTarget(
 
  123                    $this->lng->txt(
"back"),
 
  124                    $this->ctrl->getLinkTarget($this, 
"share")
 
  126                include_once(
'Services/PersonalWorkspace/classes/class.ilSingleUserShareGUI.php');
 
  128                $this->ctrl->setReturn($this, 
'share');
 
  129                $this->ctrl->forwardCommand($ushare);
 
  134            case "ilpublicuserprofilegui":
 
  135                $ilTabs->clearTargets();
 
  136                $ilTabs->setBackTarget(
 
  137                    $this->lng->txt(
"back"),
 
  138                    $this->ctrl->getLinkTarget($this, 
"share")
 
  141                include_once(
'./Services/User/classes/class.ilPublicUserProfileGUI.php');
 
  143                $prof->setBackUrl($this->ctrl->getLinkTarget($this, 
"share"));
 
  144                $tpl->setContent($prof->getHTML());
 
  152                return $this->$cmd();
 
  167        if (!$this->is_portfolio) {
 
  168            $obj_id = $this->access_handler->getTree()->lookupObjectId($this->node_id);
 
  188        $options[
"user"] = $this->lng->txt(
"wsp_set_permission_single_user");
 
  190        include_once 
'Modules/Group/classes/class.ilGroupParticipants.php';
 
  192        if (
sizeof($grp_ids)) {
 
  193            $options[
"group"] = $this->lng->txt(
"wsp_set_permission_group");
 
  196        include_once 
'Modules/Course/classes/class.ilCourseParticipants.php';
 
  198        if (
sizeof($crs_ids)) {
 
  199            $options[
"course"] = $this->lng->txt(
"wsp_set_permission_course");
 
  203            $options[
"registered"] = $this->lng->txt(
"wsp_set_permission_registered");
 
  206        if (
$ilSetting->get(
"enable_global_profiles")) {
 
  207            if (!$this->
getAccessHandler()->hasGlobalPasswordPermission($this->node_id)) {
 
  208                $options[
"password"] = $this->lng->txt(
"wsp_set_permission_all_password");
 
  212                $options[
"all"] = $this->lng->txt(
"wsp_set_permission_all");
 
  216        include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  219        $ilToolbar->addStickyItem($actions);
 
  221        $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
 
  223        include_once 
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
 
  225        $button->setCaption(
"add");
 
  226        $button->setCommand(
"addpermissionhandler");
 
  227        $ilToolbar->addStickyItem($button);
 
  229        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessTableGUI.php";
 
  231        $tpl->setContent(
$table->getHTML() . $this->footer);
 
  236        switch ($_REQUEST[
"action"]) {
 
  239                include_once 
'./Services/User/classes/class.ilUserAccountSettings.php';
 
  241                    $this->ctrl->redirectByClass(
"ilsingleusersharegui");
 
  243                    $this->ctrl->setParameterByClass(
"ilmailsearchgui", 
"ref", 
"wsp");
 
  244                    $this->ctrl->redirectByClass(
"ilmailsearchgui");
 
  249                $this->ctrl->setParameterByClass(
"ilmailsearchgroupsgui", 
"ref", 
"wsp");
 
  250                $this->ctrl->redirectByClass(
"ilmailsearchgroupsgui");
 
  254                $this->ctrl->setParameterByClass(
"ilmailsearchcoursesgui", 
"ref", 
"wsp");
 
  255                $this->ctrl->redirectByClass(
"ilmailsearchcoursesgui");
 
  259                $this->
getAccessHandler()->addPermission($this->node_id, self::PERMISSION_REGISTERED);
 
  261                $this->ctrl->redirect($this, 
"share");
 
  269                $this->
getAccessHandler()->addPermission($this->node_id, self::PERMISSION_ALL);
 
  271                $this->ctrl->redirect($this, 
"share");
 
  277        if ($_REQUEST[
"obj_id"]) {
 
  278            $this->
getAccessHandler()->removePermission($this->node_id, (
int) $_REQUEST[
"obj_id"]);
 
  282        $this->ctrl->redirect($this, 
"share");
 
  287        include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  289        $form->setFormAction($this->ctrl->getFormAction($this));
 
  290        $form->setTitle($this->lng->txt(
"wsp_set_permission_all_password"));
 
  296        $form->addCommandButton(
'savepasswordform', $this->lng->txt(
"save"));
 
  297        $form->addCommandButton(
'share', $this->lng->txt(
"cancel"));
 
  309        $tpl->setContent($a_form->getHTML());
 
  315        if (
$form->checkInput()) {
 
  318                self::PERMISSION_ALL_PASSWORD,
 
  319                md5(
$form->getInput(
"password"))
 
  322            $this->ctrl->redirect($this, 
"share");
 
  325        $form->setValuesByPost();
 
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
An exception for terminatinating execution or to throw for unit testing.
static _lookupTitle($a_id)
lookup object title
static _getMembershipByType($a_usr_id, $a_type, $a_only_member_role=false)
get membership by type Get course or group membership
GUI class for public user profile presentation.
static getInstance()
Singelton get instance.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
const PERMISSION_REGISTERED
showPasswordForm(ilPropertyFormGUI $a_form=null)
setObjectTitle()
restore object title
const PERMISSION_ALL_PASSWORD
__construct($a_node_id, $a_access_handler, $a_is_portfolio=false, $a_footer=null)
Workspace access handler table GUI class.
if(empty($password)) $table
if(isset($_POST['submit'])) $form