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 "ilpublicuserprofilegui";                          
 
   88                                $ilTabs->clearTargets();
 
   89                                $ilTabs->setBackTarget($this->lng->txt(
"back"),
 
   90                                        $this->ctrl->getLinkTarget($this, 
"share"));    
 
   92                                include_once(
'./Services/User/classes/class.ilPublicUserProfileGUI.php');
 
   94                                $prof->setBackUrl($this->ctrl->getLinkTarget($this, 
"share"));
 
   95                                $tpl->setContent($prof->getHTML());
 
  104                                return $this->
$cmd();
 
  119                if(!$this->is_portfolio)
 
  121                        $obj_id = $this->access_handler->getTree()->lookupObjectId($this->node_id);
 
  140                $options[
"user"] = $this->lng->txt(
"wsp_set_permission_single_user");
 
  142                include_once 
'Modules/Group/classes/class.ilGroupParticipants.php';
 
  146                        $options[
"group"] = $this->lng->txt(
"wsp_set_permission_group");
 
  149                include_once 
'Modules/Course/classes/class.ilCourseParticipants.php';
 
  153                        $options[
"course"] = $this->lng->txt(
"wsp_set_permission_course");
 
  158                        $options[
"registered"] = $this->lng->txt(
"wsp_set_permission_registered");
 
  165                                $options[
"password"] = $this->lng->txt(
"wsp_set_permission_all_password");
 
  170                                $options[
"all"] = $this->lng->txt(
"wsp_set_permission_all");            
 
  174                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  177                $ilToolbar->addInputItem($actions);
 
  179                $ilToolbar->setFormAction($this->ctrl->getFormAction($this));           
 
  181                include_once 
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
 
  183                $button->setCaption(
"add");
 
  184                $button->setCommand(
"addpermissionhandler");
 
  185                $ilToolbar->addButtonInstance($button);
 
  187                include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessTableGUI.php";
 
  189                $tpl->setContent($table->getHTML().$this->footer);
 
  197                                $this->ctrl->setParameterByClass(
"ilmailsearchgui", 
"ref", 
"wsp");
 
  198                                $this->ctrl->redirectByClass(
"ilmailsearchgui");
 
  201                                $this->ctrl->setParameterByClass(
"ilmailsearchgroupsgui", 
"ref", 
"wsp");
 
  202                                $this->ctrl->redirectByClass(
"ilmailsearchgroupsgui");
 
  205                                $this->ctrl->setParameterByClass(
"ilmailsearchcoursesgui", 
"ref", 
"wsp");
 
  206                                $this->ctrl->redirectByClass(
"ilmailsearchcoursesgui");
 
  209                                $this->
getAccessHandler()->addPermission($this->node_id, self::PERMISSION_REGISTERED);
 
  211                                $this->ctrl->redirect($this, 
"share");
 
  218                                $this->
getAccessHandler()->addPermission($this->node_id, self::PERMISSION_ALL);
 
  220                                $this->ctrl->redirect($this, 
"share");
 
  232                $this->ctrl->redirect($this, 
"share");
 
  237                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  239                $form->setFormAction($this->ctrl->getFormAction($this));
 
  240                $form->setTitle($this->lng->txt(
"wsp_set_permission_all_password"));
 
  243                $password->setRequired(
true);
 
  244                $form->addItem($password);
 
  246                $form->addCommandButton(
'savepasswordform', $this->lng->txt(
"save"));
 
  247                $form->addCommandButton(
'share', $this->lng->txt(
"cancel"));
 
  260                $tpl->setContent($a_form->getHTML());
 
  266                if($form->checkInput())
 
  269                                self::PERMISSION_ALL_PASSWORD, md5($form->getInput(
"password")));       
 
  271                        $this->ctrl->redirect($this, 
"share");
 
  274                $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 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