24 include_once(
'Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
 
   67                 $this->lng->loadLanguageModule(
'crs');
 
   68                 $this->lng->loadLanguageModule(
'grp');
 
   69                 $this->lng->loadLanguageModule(
'ps');
 
   74                 $this->container = $a_container;
 
   75                 $this->ref_id = $this->container->getRefId();
 
  108                 $this->registration_possible = $a_status;
 
  152                 $parent = $tree->getParentId($this->container->getRefId());
 
  154                 $message = sprintf($this->lng->txt($this->container->getType().
'_removed_from_waiting_list'),
 
  155                         $this->container->getTitle());
 
  211                 include_once(
'Modules/Course/classes/class.ilObjCourseGrouping.php');
 
  219                 $tpl = 
new ilTemplate(
'tpl.membership_limitation_form.html',
true,
true,
'Services/Membership');
 
  220                 $tpl->setVariable(
'LIMIT_INTRO',$this->lng->txt($this->type.
'_grp_info_reg'));
 
  228                         if($ilAccess->checkAccess(
'visible',
'',$ref_id,$type))
 
  230                                 include_once(
'./classes/class.ilLink.php');
 
  231                                 $tpl->setVariable(
'LINK_ITEM',
'repository.php?ref_id='.$ref_id);
 
  232                                 $tpl->setVariable(
'ITEM_LINKED_TITLE',
$title);
 
  236                                 $tpl->setVariable(
'ITEM_TITLE');
 
  238                         $tpl->setCurrentBlock(
'items');
 
  240                         $tpl->setVariable(
'ALT_ICON',$this->lng->txt(
'obj_'.$type));
 
  241                         $tpl->parseCurrentBlock();
 
  249                         $mem->setAlert($this->container->getMessage());
 
  252                 $this->form->addItem($mem);
 
  270                 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');         
 
  276                 $this->lng->loadLanguageModule(
'ps');
 
  278                 include_once(
'Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php');
 
  281                 if(!count($fields_info->getExportableFields()))
 
  287                 $section->setTitle($this->lng->txt(
'usr_agreement'));
 
  290                 $fields = 
new ilCustomInputGUI($this->lng->txt($this->type.
'_user_agreement'),
'');
 
  291                 $tpl = 
new ilTemplate(
'tpl.agreement_form.html',
true,
true,
'Services/Membership');
 
  292                 $tpl->setVariable(
'TXT_INFO_AGREEMENT',$this->lng->txt($this->type.
'_info_agreement'));
 
  293                 foreach($fields_info->getExportableFields() as $field)
 
  295                         $tpl->setCurrentBlock(
'field_item');
 
  296                         $tpl->setVariable(
'FIELD_NAME',$this->lng->txt($field));
 
  297                         $tpl->parseCurrentBlock();
 
  300                 $this->form->addItem($fields);
 
  305                 if($this->privacy->confirmationRequired($this->type))
 
  307                         $agreement = 
new ilCheckboxInputGUI($this->lng->txt($this->type.
'_agree'),
'agreement');
 
  309                         $agreement->setOptionTitle($this->lng->txt($this->type.
'_info_agree'));
 
  310                         $agreement->setValue(1);
 
  311                         $this->form->addItem($agreement);
 
  326                 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
 
  327                 include_once(
'Modules/Course/classes/Export/class.ilCourseUserData.php');
 
  335                 $cdf->
setValue($this->lng->txt($this->type.
'_ps_cdf_info'));
 
  336                 $cdf->setRequired(
true);
 
  338                 foreach($cdf_fields as $field_obj)
 
  340                         $course_user_data = 
new ilCourseUserData($ilUser->getId(),$field_obj->getId());
 
  342                         switch($field_obj->getType())
 
  345                                         $select = 
new ilSelectInputGUI($field_obj->getName(),
'cdf['.$field_obj->getId().
']');
 
  347                                         $select->setOptions($field_obj->prepareSelectBox());
 
  348                                         if($field_obj->isRequired())
 
  350                                                 $select->setRequired(
true);
 
  353                                         $cdf->addSubItem($select);
 
  359                                         $text = 
new ilTextInputGUI($field_obj->getName(),
'cdf['.$field_obj->getId().
']');
 
  362                                         $text->setMaxLength(255);
 
  363                                         if($field_obj->isRequired())
 
  365                                                 $text->setRequired(
true);
 
  367                                         $cdf->addSubItem($text);
 
  371                 $this->form->addItem($cdf);
 
  389                 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
 
  390                 if(!$this->privacy->confirmationRequired($this->type))
 
  407                 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
 
  408                 include_once(
'Modules/Course/classes/Export/class.ilCourseUserData.php');
 
  410                 $all_required = 
true;
 
  413                         switch($field_obj->getType())
 
  418                                         foreach((array) $field_obj->getValues() as $v)
 
  432                         $course_user_data = 
new ilCourseUserData($ilUser->getId(),$field_obj->getId());
 
  433                         $course_user_data->
setValue($value);
 
  434                         $course_user_data->update();
 
  436                         if($field_obj->isRequired() and (!strlen($value) or $value == -1))
 
  438                                 $all_required = 
false;
 
  441                 return $all_required;
 
  454                 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
 
  460                 include_once(
'Services/Membership/classes/class.ilMemberAgreement.php');
 
  461                 $this->agreement = 
new ilMemberAgreement($ilUser->getId(),$this->container->getId());
 
  463                 $this->agreement->setAcceptanceTime(time());
 
  464                 $this->agreement->save();
 
  477                         $tree->getParentId($this->container->getRefId()));
 
  491                 $this->tpl->setContent($this->form->getHTML());
 
  537                 if(is_object($this->form))
 
  542                 include_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
 
  544                 $this->form->setFormAction($this->ctrl->getFormAction($this,
'join'));
 
  578                         $this->form->addCommandButton(
'join',$this->lng->txt(
'mem_add_to_wl'));
 
  579                         $this->form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
 
  583                         $this->form->addCommandButton(
'join',$this->lng->txt(
'join'));
 
  584                         $this->form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
 
  589                                 sprintf($this->lng->txt($this->container->getType().
'_cancel_waiting_list'),
 
  590                                 $this->container->getTitle())
 
  592                         $this->form->addCommandButton(
'leaveWaitingList', $this->lng->txt(
'leave_waiting_list'));
 
  593                         $this->form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
 
  603                 global $ilUser,$tree;
 
  607                 ilUtil::redirect(
"repository.php?ref_id=".$tree->getParentId($this->container->getRefId()));
 
  612                 global $ilUser,$tree;
 
  614                 $this->participants->deleteSubscriber($ilUser->getId());
 
  616                 ilUtil::redirect(
"repository.php?ref_id=".$tree->getParentId($this->container->getRefId()));