63 $this->lng->loadLanguageModule(
'crs');
64 $this->lng->loadLanguageModule(
'grp');
69 $this->container = $a_container;
70 $this->ref_id = $this->container->getRefId();
101 $this->registration_possible = $a_status;
145 $parent = $tree->getParentId($this->container->getRefId());
147 $message = sprintf($this->lng->txt($this->container->getType().
'_removed_from_waiting_list'),
148 $this->container->getTitle());
204 include_once(
'Modules/Course/classes/class.ilObjCourseGrouping.php');
212 $tpl =
new ilTemplate(
'tpl.membership_limitation_form.html',
true,
true,
'Services/Membership');
213 $tpl->setVariable(
'LIMIT_INTRO',$this->lng->txt($this->type.
'_grp_info_reg'));
221 if($ilAccess->checkAccess(
'visible',
'',$ref_id,
$type))
223 include_once(
'./classes/class.ilLink.php');
224 $tpl->setVariable(
'LINK_ITEM',
'repository.php?ref_id='.$ref_id);
225 $tpl->setVariable(
'ITEM_LINKED_TITLE',
$title);
229 $tpl->setVariable(
'ITEM_TITLE');
231 $tpl->setCurrentBlock(
'items');
233 $tpl->setVariable(
'ALT_ICON',$this->lng->txt(
'obj_'.$type));
234 $tpl->parseCurrentBlock();
242 $mem->setAlert($this->container->getMessage());
245 $this->form->addItem($mem);
270 $tree->getParentId($this->container->getRefId()));
284 $this->tpl->setContent($this->form->getHTML());
330 if(is_object($this->form))
335 include_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
337 $this->form->setFormAction($this->ctrl->getFormAction($this,
'join'));
371 $this->form->addCommandButton(
'join',$this->lng->txt(
'mem_add_to_wl'));
372 $this->form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
376 $this->form->addCommandButton(
'join',$this->lng->txt(
'join'));
377 $this->form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
382 sprintf($this->lng->txt($this->container->getType().
'_cancel_waiting_list'),
383 $this->container->getTitle())
385 $this->form->addCommandButton(
'leaveWaitingList', $this->lng->txt(
'leave_waiting_list'));
386 $this->form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
396 global $ilUser,$tree;
400 ilUtil::redirect(
"repository.php?ref_id=".$tree->getParentId($this->container->getRefId()));
405 global $ilUser,$tree;
407 $this->participants->deleteSubscriber($ilUser->getId());
409 ilUtil::redirect(
"repository.php?ref_id=".$tree->getParentId($this->container->getRefId()));