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                        $ilErr->raiseError($this->lng->txt(
'permission_denied'), 
$ilErr->WARNING);
 
   54                        case "ilmailsearchcoursesgui";                                                  
 
   55                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   56                                        $this->ctrl->getLinkTarget($this, 
"share"));
 
   57                                include_once(
'Services/Contact/classes/class.ilMailSearchCoursesGUI.php');
 
   59                                $this->ctrl->setReturn($this, 
'share');
 
   60                                $this->ctrl->forwardCommand($csearch);                          
 
   65                        case "ilmailsearchgroupsgui";                   
 
   66                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   67                                        $this->ctrl->getLinkTarget($this, 
"share"));
 
   68                                include_once(
'Services/Contact/classes/class.ilMailSearchGroupsGUI.php');
 
   70                                $this->ctrl->setReturn($this, 
'share');
 
   71                                $this->ctrl->forwardCommand($gsearch);
 
   76                        case "ilmailsearchgui";                 
 
   77                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   78                                        $this->ctrl->getLinkTarget($this, 
"share"));
 
   79                                include_once(
'Services/Contact/classes/class.ilMailSearchGUI.php');
 
   81                                $this->ctrl->setReturn($this, 
'share');
 
   82                                $this->ctrl->forwardCommand($usearch);
 
   87                        case "ilsingleusersharegui";
 
   88                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   89                                $this->ctrl->getLinkTarget($this, 
"share"));
 
   90                                include_once(
'Services/PersonalWorkspace/classes/class.ilSingleUserShareGUI.php');
 
   92                                $this->ctrl->setReturn($this, 
'share');
 
   93                                $this->ctrl->forwardCommand($ushare);
 
   98                        case "ilpublicuserprofilegui";                          
 
   99                                $ilTabs->clearTargets();
 
  100                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
  101                                        $this->ctrl->getLinkTarget($this, 
"share"));    
 
  103                                include_once(
'./Services/User/classes/class.ilPublicUserProfileGUI.php');
 
  105                                $prof->setBackUrl($this->ctrl->getLinkTarget($this, 
"share"));
 
  106                                $tpl->setContent($prof->getHTML());
 
  115                                return $this->
$cmd();
 
  130                if(!$this->is_portfolio)
 
  132                        $obj_id = $this->access_handler->getTree()->lookupObjectId($this->node_id);
 
  151                $options[
"user"] = $this->lng->txt(
"wsp_set_permission_single_user");
 
  153                include_once 
'Modules/Group/classes/class.ilGroupParticipants.php';
 
  157                        $options[
"group"] = $this->lng->txt(
"wsp_set_permission_group");
 
  160                include_once 
'Modules/Course/classes/class.ilCourseParticipants.php';
 
  164                        $options[
"course"] = $this->lng->txt(
"wsp_set_permission_course");
 
  169                        $options[
"registered"] = $this->lng->txt(
"wsp_set_permission_registered");
 
  176                                $options[
"password"] = $this->lng->txt(
"wsp_set_permission_all_password");
 
  181                                $options[
"all"] = $this->lng->txt(
"wsp_set_permission_all");            
 
  185                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  188                $ilToolbar->addStickyItem($actions);
 
  190                $ilToolbar->setFormAction($this->ctrl->getFormAction($this));           
 
  192                include_once 
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
 
  194                $button->setCaption(
"add");
 
  195                $button->setCommand(
"addpermissionhandler");
 
  196                $ilToolbar->addStickyItem($button);
 
  198                include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessTableGUI.php";
 
  200                $tpl->setContent($table->getHTML().$this->footer);
 
  208                                include_once 
'./Services/User/classes/class.ilUserAccountSettings.php';
 
  211                                        $this->ctrl->redirectByClass(
"ilsingleusersharegui");
 
  215                                        $this->ctrl->setParameterByClass(
"ilmailsearchgui", 
"ref", 
"wsp");
 
  216                                        $this->ctrl->redirectByClass(
"ilmailsearchgui");
 
  220                                $this->ctrl->setParameterByClass(
"ilmailsearchgroupsgui", 
"ref", 
"wsp");
 
  221                                $this->ctrl->redirectByClass(
"ilmailsearchgroupsgui");
 
  224                                $this->ctrl->setParameterByClass(
"ilmailsearchcoursesgui", 
"ref", 
"wsp");
 
  225                                $this->ctrl->redirectByClass(
"ilmailsearchcoursesgui");
 
  228                                $this->
getAccessHandler()->addPermission($this->node_id, self::PERMISSION_REGISTERED);
 
  230                                $this->ctrl->redirect($this, 
"share");
 
  237                                $this->
getAccessHandler()->addPermission($this->node_id, self::PERMISSION_ALL);
 
  239                                $this->ctrl->redirect($this, 
"share");
 
  251                $this->ctrl->redirect($this, 
"share");
 
  256                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  258                $form->setFormAction($this->ctrl->getFormAction($this));
 
  259                $form->setTitle($this->lng->txt(
"wsp_set_permission_all_password"));
 
  262                $password->setRequired(
true);
 
  263                $form->addItem($password);
 
  265                $form->addCommandButton(
'savepasswordform', $this->lng->txt(
"save"));
 
  266                $form->addCommandButton(
'share', $this->lng->txt(
"cancel"));
 
  279                $tpl->setContent($a_form->getHTML());
 
  285                if($form->checkInput())
 
  288                                self::PERMISSION_ALL_PASSWORD, md5($form->getInput(
"password")));       
 
  290                        $this->ctrl->redirect($this, 
"share");
 
  293                $form->setValuesByPost();
 
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($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
if(!is_array($argv)) $options