28        function __construct($a_node_id, $a_access_handler, $a_is_portfolio = 
false, $a_footer = 
null)
 
   34                $this->node_id = $a_node_id;
 
   35                $this->access_handler = $a_access_handler;              
 
   36                $this->is_portfolio = (bool)$a_is_portfolio;
 
   37                $this->footer = $a_footer;              
 
   44                $next_class = $this->ctrl->getNextClass($this);
 
   45                $cmd = $this->ctrl->getCmd();
 
   49                        case "ilmailsearchcoursesgui";                                                  
 
   50                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   51                                        $this->ctrl->getLinkTarget($this, 
"share"));
 
   52                                include_once(
'Services/Contact/classes/class.ilMailSearchCoursesGUI.php');
 
   54                                $this->ctrl->setReturn($this, 
'share');
 
   55                                $this->ctrl->forwardCommand($csearch);                          
 
   60                        case "ilmailsearchgroupsgui";                   
 
   61                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   62                                        $this->ctrl->getLinkTarget($this, 
"share"));
 
   63                                include_once(
'Services/Contact/classes/class.ilMailSearchGroupsGUI.php');
 
   65                                $this->ctrl->setReturn($this, 
'share');
 
   66                                $this->ctrl->forwardCommand($gsearch);
 
   71                        case "ilmailsearchgui";                 
 
   72                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   73                                        $this->ctrl->getLinkTarget($this, 
"share"));
 
   74                                include_once(
'Services/Contact/classes/class.ilMailSearchGUI.php');
 
   76                                $this->ctrl->setReturn($this, 
'share');
 
   77                                $this->ctrl->forwardCommand($usearch);
 
   82                        case "ilsingleusersharegui";
 
   83                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   84                                        $this->ctrl->getLinkTarget($this, 
"share"));
 
   85                                include_once(
'Services/PersonalWorkspace/classes/class.ilSingleUserShareGUI.php');
 
   87                                $this->ctrl->setReturn($this, 
'share');
 
   88                                $this->ctrl->forwardCommand($ushare);
 
   93                        case "ilpublicuserprofilegui";                          
 
   94                                $ilTabs->clearTargets();
 
   95                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   96                                        $this->ctrl->getLinkTarget($this, 
"share"));    
 
   98                                include_once(
'./Services/User/classes/class.ilPublicUserProfileGUI.php');
 
  100                                $prof->setBackUrl($this->ctrl->getLinkTarget($this, 
"share"));
 
  101                                $tpl->setContent($prof->getHTML());
 
  110                                return $this->
$cmd();
 
  125                if(!$this->is_portfolio)
 
  127                        $obj_id = $this->access_handler->getTree()->lookupObjectId($this->node_id);
 
  146                $options[
"user"] = $this->lng->txt(
"wsp_set_permission_single_user");
 
  148                include_once 
'Modules/Group/classes/class.ilGroupParticipants.php';
 
  152                        $options[
"group"] = $this->lng->txt(
"wsp_set_permission_group");
 
  155                include_once 
'Modules/Course/classes/class.ilCourseParticipants.php';
 
  159                        $options[
"course"] = $this->lng->txt(
"wsp_set_permission_course");
 
  164                        $options[
"registered"] = $this->lng->txt(
"wsp_set_permission_registered");
 
  171                                $options[
"password"] = $this->lng->txt(
"wsp_set_permission_all_password");
 
  176                                $options[
"all"] = $this->lng->txt(
"wsp_set_permission_all");            
 
  180                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  183                $ilToolbar->addStickyItem($actions);
 
  185                $ilToolbar->setFormAction($this->ctrl->getFormAction($this));           
 
  187                include_once 
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
 
  189                $button->setCaption(
"add");
 
  190                $button->setCommand(
"addpermissionhandler");
 
  191                $ilToolbar->addStickyItem($button);
 
  193                include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessTableGUI.php";
 
  195                $tpl->setContent($table->getHTML().$this->footer);
 
  200                switch($_REQUEST[
"action"])
 
  204                                include_once 
'./Services/User/classes/class.ilUserAccountSettings.php';
 
  207                                        $this->ctrl->redirectByClass(
"ilsingleusersharegui");
 
  211                                        $this->ctrl->setParameterByClass(
"ilmailsearchgui", 
"ref", 
"wsp");
 
  212                                        $this->ctrl->redirectByClass(
"ilmailsearchgui");
 
  216                                $this->ctrl->setParameterByClass(
"ilmailsearchgroupsgui", 
"ref", 
"wsp");
 
  217                                $this->ctrl->redirectByClass(
"ilmailsearchgroupsgui");
 
  220                                $this->ctrl->setParameterByClass(
"ilmailsearchcoursesgui", 
"ref", 
"wsp");
 
  221                                $this->ctrl->redirectByClass(
"ilmailsearchcoursesgui");
 
  224                                $this->
getAccessHandler()->addPermission($this->node_id, self::PERMISSION_REGISTERED);
 
  226                                $this->ctrl->redirect($this, 
"share");
 
  233                                $this->
getAccessHandler()->addPermission($this->node_id, self::PERMISSION_ALL);
 
  235                                $this->ctrl->redirect($this, 
"share");
 
  241                if($_REQUEST[
"obj_id"])
 
  243                        $this->
getAccessHandler()->removePermission($this->node_id, (
int)$_REQUEST[
"obj_id"]);
 
  247                $this->ctrl->redirect($this, 
"share");
 
  252                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  254                $form->setFormAction($this->ctrl->getFormAction($this));
 
  255                $form->setTitle($this->lng->txt(
"wsp_set_permission_all_password"));
 
  258                $password->setRequired(
true);
 
  259                $form->addItem($password);
 
  261                $form->addCommandButton(
'savepasswordform', $this->lng->txt(
"save"));
 
  262                $form->addCommandButton(
'share', $this->lng->txt(
"cancel"));
 
  275                $tpl->setContent($a_form->getHTML());
 
  281                if($form->checkInput())
 
  284                                self::PERMISSION_ALL_PASSWORD, md5($form->getInput(
"password")));       
 
  286                        $this->ctrl->redirect($this, 
"share");
 
  289                $form->setValuesByPost();
 
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(!is_array($argv)) $options