38 include_once
"./Services/Container/classes/class.ilContainerGUI.php";
51 $this->
ilContainerGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
53 $this->ctrl->saveParameter($this,
'ref_id');
55 $this->lng->loadLanguageModule(
'ilinc');
67 $new_type = $_POST[
'new_type'] ? $_POST[
'new_type'] :
$_GET[
'new_type'];
69 if(!$rbacsystem->checkAccess(
'create',
$_GET[
'ref_id'], $new_type))
71 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
75 return $this->tpl->setVariable(
'ADM_CONTENT', $this->form_gui->getHtml());
82 if(!$ilAccess->checkAccess(
'write',
'', (
int)
$_GET[
'ref_id']))
84 $this->ilErr->raiseError($this->lng->txt(
'permission_denied'), $this->ilErr->MESSAGE);
88 if($this->form_gui->checkInput())
90 $_POST[
'Fobject'][
'title'] = $this->form_gui->getInput(
'title');
91 $_POST[
'Fobject'][
'desc'] = $this->form_gui->getInput(
'desc');
92 $_POST[
'Fobject'][
'activated'] = $this->form_gui->getInput(
'activated');
93 $_POST[
'Fobject'][
'akclassvalue1'] = $this->form_gui->getInput(
'akclassvalue1');
94 $_POST[
'Fobject'][
'akclassvalue2'] = $this->form_gui->getInput(
'akclassvalue2');
98 $this->
object->activated =
ilUtil::tf2yn($_POST[
'Fobject'][
'activated']);
101 if($this->ilias->getSetting(
'ilinc_akclassvalues_active'))
103 if($this->object->getAKClassValue1() != $_POST[
'Fobject'][
'akclassvalue1'])
108 if($this->object->getAKClassValue2() != $_POST[
'Fobject'][
'akclassvalue2'])
118 $this->ilErr->raiseError($this->object->getErrorMsg(), $this->ilErr->MESSAGE);
122 if(array_key_exists(
'akclassvalue1', $_POST[
'Fobject']) or
123 array_key_exists(
'akclassvalue2',$_POST[
'Fobject']))
125 if(!$this->object->updateClassrooms())
128 $this->form_gui->setValuesByPost();
129 return $this->tpl->setVariable(
'ADM_CONTENT', $this->form_gui->getHtml());
134 $this->form_gui->setValuesByPost();
135 return $this->tpl->setVariable(
'ADM_CONTENT', $this->form_gui->getHtml());
139 $this->form_gui->setValuesByPost();
140 return $this->tpl->setVariable(
'ADM_CONTENT', $this->form_gui->getHtml());
151 if($this->form_gui->checkInput())
153 $_POST[
'Fobject'][
'title'] = $this->form_gui->getInput(
'title');
154 $_POST[
'Fobject'][
'desc'] = $this->form_gui->getInput(
'desc');
155 $_POST[
'Fobject'][
'activated'] = $this->form_gui->getInput(
'activated');
156 $_POST[
'Fobject'][
'akclassvalue1'] = $this->form_gui->getInput(
'akclassvalue1');
157 $_POST[
'Fobject'][
'akclassvalue2'] = $this->form_gui->getInput(
'akclassvalue2');
160 include_once
'Modules/ILinc/classes/class.ilnetucateXMLAPI.php';
162 $ilinc->addCourse($_POST[
'Fobject']);
164 $response = $ilinc->sendRequest();
165 if($response->isError())
167 $this->ilErr->raiseError($response->getErrorMsg(), $this->ilErr->MESSAGE);
174 $icrsObj->storeiLincId($response->getFirstID());
175 $icrsObj->saveActivationStatus(
ilUtil::tf2yn((
bool)$this->form_gui->getInput(
'activated')));
176 $icrsObj->saveAKClassValues(
177 $this->form_gui->getInput(
'akclassvalue1'),
178 $this->form_gui->getInput(
'akclassvalue2')
182 $roles = $icrsObj->initDefaultRoles();
185 $success = $icrsObj->addMember($this->ilias->account, $icrsObj->getDefaultAdminRole(),
true);
189 $this->ilErr->raiseError($icrsObj->getErrorMsg(), $this->ilErr->MESSAGE);
196 $this->ilias->account->addDesktopItem($icrsObj->getRefId(),
'icrs');
204 $this->form_gui->setValuesByPost();
205 return $this->tpl->setVariable(
'ADM_CONTENT', $this->form_gui->getHtml());
216 global $rbacsystem,$ilAccess;
218 $this->ctrl->setParameter($this,
'ref_id',$this->ref_id);
220 if($rbacsystem->checkAccess(
'read',$this->ref_id))
222 $tabs_gui->addTarget(
'ilinc_classrooms',
223 $this->ctrl->getLinkTarget($this,
''),
224 array(
'',
'view',
'editClassroom',
'updateClassroom',
'removeClassroom')
228 if($this->ilias->getSetting(
'ilinc_active'))
230 if($ilAccess->checkAccess(
'write',
'', $this->ref_id))
232 $tabs_gui->addTarget(
'edit_properties',
233 $this->ctrl->getLinkTarget($this,
'edit'), array(
'edit',
'update',
'save'), get_class($this));
243 if($ilAccess->checkAccess(
'write',
'',$this->ref_id))
245 $tabs_gui->addTarget(
"ilinc_involved_users",
246 $this->ctrl->getLinkTarget($this,
"members"),
247 array(
"members",
"mailMembers",
"membersGallery",
"showProfile",
'changeMember',
'RemoveMember'),
250 elseif ($ilAccess->checkAccess(
'read',
'',$this->ref_id))
252 $tabs_gui->addTarget(
"ilinc_involved_users",
253 $this->ctrl->getLinkTarget($this,
"membersGallery"),
254 array(
"members",
"mailMembers",
"membersGallery",
"showProfile"),
258 if ($rbacsystem->checkAccess(
'write',$this->ref_id) and $this->
object->isDocent($this->ilias->account))
261 $tabs_gui->addTarget(
"ilinc_manage_course_documents",
262 $url = $this->object->userLogin($this->ilias->account),
"agenda",
"",
"_blank");
277 if ($rbacsystem->checkAccess(
'edit_permission',$this->ref_id))
279 $tabs_gui->addTarget(
"perm_settings",
280 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
284 if ($this->ctrl->getTargetScript() ==
"repository.php" and !empty(
$_SESSION[
'il_rep_clipboard']))
286 $tabs_gui->addTarget(
"clipboard",
287 $this->ctrl->getLinkTarget($this,
"clipboard"),
"clipboard", get_class($this));
290 if ($this->ctrl->getTargetScript() ==
"adm_object.php")
292 if ($this->tree->getSavedNodeData($this->ref_id))
294 $tabs_gui->addTarget(
"trash",
295 $this->ctrl->getLinkTarget($this,
"trash"),
"trash", get_class($this));
302 unset(
$_SESSION[
"grp_delete_member_ids"]);
303 unset(
$_SESSION[
"grp_delete_subscriber_ids"]);
311 public function __search($a_search_string,$a_search_for)
313 include_once(
"./classes/class.ilSearch.php");
315 $this->lng->loadLanguageModule(
"content");
317 $search->setPerformUpdate(
false);
319 $search->setCombination(
"and");
320 $search->setSearchFor(array(0 => $a_search_for));
321 $search->setSearchType(
'new');
323 if($search->validate($message))
325 $search->performSearch();
330 $this->ctrl->redirect($this,
"searchUserForm");
333 return $search->getResultByType($a_search_for);
338 $return_to =
"searchUserForm";
340 if ($a_cmd ==
"listUsersRole" or $a_cmd ==
"listUsersGroup")
342 $return_to =
"search";
346 $tpl =& $tbl->getTemplateObject();
349 $tpl->setCurrentBlock(
"tbl_form_header");
350 $tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
351 $tpl->parseCurrentBlock();
353 $tpl->setCurrentBlock(
"tbl_action_btn");
354 $tpl->setVariable(
"BTN_NAME",$return_to);
355 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"back"));
356 $tpl->parseCurrentBlock();
358 $tpl->setCurrentBlock(
"tbl_action_btn");
359 $tpl->setVariable(
"BTN_NAME",
"addUser");
360 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"add"));
361 $tpl->parseCurrentBlock();
363 if (!empty($a_user_ids))
366 $tpl->setCurrentBlock(
"tbl_action_toggle_checkboxes");
367 $tpl->setVariable(
"JS_VARNAME",
"user");
369 $tpl->setVariable(
"TXT_CHECKALL", $this->lng->txt(
"check_all"));
370 $tpl->setVariable(
"TXT_UNCHECKALL", $this->lng->txt(
"uncheck_all"));
371 $tpl->parseCurrentBlock();
374 $tpl->setCurrentBlock(
"tbl_action_row");
375 $tpl->setVariable(
"COLUMN_COUNTS",5);
377 $tpl->parseCurrentBlock();
379 $tbl->setTitle($this->lng->txt(
"ilinc_header_edit_users"),
"icon_usr_b.gif",$this->lng->txt(
"ilinc_header_edit_users"));
380 $tbl->setHeaderNames(array(
"",
381 $this->lng->txt(
"username"),
382 $this->lng->txt(
"firstname"),
383 $this->lng->txt(
"lastname"),
384 $this->lng->txt(
"last_visit")));
385 $tbl->setHeaderVars(array(
"",
390 array(
"ref_id" => $this->object->getRefId(),
392 "cmdClass" =>
"ilobjilinccoursegui",
393 "cmdNode" =>
$_GET[
"cmdNode"]));
395 $tbl->setColumnWidth(array(
"",
"33%",
"33%",
"33%"));
400 $this->tpl->setVariable(
"SEARCH_RESULT_TABLE",$tbl->tpl->get());
408 $tpl =& $tbl->getTemplateObject();
410 $tpl->setCurrentBlock(
"tbl_form_header");
411 $tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
412 $tpl->parseCurrentBlock();
414 $tpl->setCurrentBlock(
"tbl_action_btn");
415 $tpl->setVariable(
"BTN_NAME",
"searchUserForm");
416 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"back"));
417 $tpl->parseCurrentBlock();
419 $tpl->setCurrentBlock(
"tbl_action_btn");
420 $tpl->setVariable(
"BTN_NAME",
"listUsersRole");
421 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"grp_list_users"));
422 $tpl->parseCurrentBlock();
424 if (!empty($a_role_ids))
427 $tpl->setCurrentBlock(
"tbl_action_toggle_checkboxes");
428 $tpl->setVariable(
"JS_VARNAME",
"role");
430 $tpl->setVariable(
"TXT_CHECKALL", $this->lng->txt(
"check_all"));
431 $tpl->setVariable(
"TXT_UNCHECKALL", $this->lng->txt(
"uncheck_all"));
432 $tpl->parseCurrentBlock();
435 $tpl->setCurrentBlock(
"tbl_action_row");
436 $tpl->setVariable(
"COLUMN_COUNTS",5);
438 $tpl->parseCurrentBlock();
440 $tbl->setTitle($this->lng->txt(
"ilinc_header_edit_users"),
"icon_usr_b.gif",$this->lng->txt(
"ilinc_header_edit_users"));
441 $tbl->setHeaderNames(array(
"",
442 $this->lng->txt(
"obj_role"),
443 $this->lng->txt(
"grp_count_members")));
444 $tbl->setHeaderVars(array(
"",
447 array(
"ref_id" => $this->object->getRefId(),
449 "cmdClass" =>
"ilobjilincoursegui",
450 "cmdNode" =>
$_GET[
"cmdNode"]));
452 $tbl->setColumnWidth(array(
"",
"80%",
"19%"));
458 $this->tpl->setVariable(
"SEARCH_RESULT_TABLE",$tbl->tpl->get());
466 $tpl =& $tbl->getTemplateObject();
468 $tpl->setCurrentBlock(
"tbl_form_header");
469 $tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
470 $tpl->parseCurrentBlock();
472 $tpl->setCurrentBlock(
"tbl_action_btn");
473 $tpl->setVariable(
"BTN_NAME",
"searchUserForm");
474 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"back"));
475 $tpl->parseCurrentBlock();
477 $tpl->setCurrentBlock(
"tbl_action_btn");
478 $tpl->setVariable(
"BTN_NAME",
"listUsersGroup");
479 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
"grp_list_users"));
480 $tpl->parseCurrentBlock();
482 if (!empty($a_grp_ids))
485 $tpl->setCurrentBlock(
"tbl_action_toggle_checkboxes");
486 $tpl->setVariable(
"JS_VARNAME",
"group");
488 $tpl->setVariable(
"TXT_CHECKALL", $this->lng->txt(
"check_all"));
489 $tpl->setVariable(
"TXT_UNCHECKALL", $this->lng->txt(
"uncheck_all"));
490 $tpl->parseCurrentBlock();
493 $tpl->setCurrentBlock(
"tbl_action_row");
494 $tpl->setVariable(
"COLUMN_COUNTS",5);
496 $tpl->parseCurrentBlock();
498 $tbl->setTitle($this->lng->txt(
"ilinc_header_edit_users"),
"icon_usr_b.gif",$this->lng->txt(
"ilinc_header_edit_users"));
499 $tbl->setHeaderNames(array(
"",
500 $this->lng->txt(
"obj_grp"),
501 $this->lng->txt(
"grp_count_members")));
502 $tbl->setHeaderVars(array(
"",
505 array(
"ref_id" => $this->object->getRefId(),
507 "cmdClass" =>
"ilobjilinccoursegui",
508 "cmdNode" =>
$_GET[
"cmdNode"]));
510 $tbl->setColumnWidth(array(
"",
"80%",
"19%"));
516 $this->tpl->setVariable(
"SEARCH_RESULT_TABLE",$tbl->tpl->get());
525 $actions = array(
"RemoveMember" => $this->lng->txt(
"remove"),
"changeMember" => $this->lng->txt(
"change"));
528 $tpl =& $tbl->getTemplateObject();
530 $tpl->setCurrentBlock(
"tbl_form_header");
531 $tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
532 $tpl->parseCurrentBlock();
534 $tpl->setCurrentBlock(
"tbl_action_row");
537 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
539 $tpl->setVariable(
"COLUMN_COUNTS",7);
542 foreach (
$actions as $name => $value)
544 $tpl->setCurrentBlock(
"tbl_action_btn");
545 $tpl->setVariable(
"BTN_NAME",$name);
546 $tpl->setVariable(
"BTN_VALUE",$value);
547 $tpl->parseCurrentBlock();
550 if (!empty($a_user_ids))
553 $tpl->setCurrentBlock(
"tbl_action_toggle_checkboxes");
554 $tpl->setVariable(
"JS_VARNAME",
"user_id");
556 $tpl->setVariable(
"TXT_CHECKALL", $this->lng->txt(
"check_all"));
557 $tpl->setVariable(
"TXT_UNCHECKALL", $this->lng->txt(
"uncheck_all"));
558 $tpl->parseCurrentBlock();
561 $tpl->setVariable(
"TPLPATH",$this->tpl->tplPath);
564 $this->ctrl->setParameter($this,
"cmd",
"members");
568 $tbl->setTitle($this->lng->txt(
"ilinc_involved_users"),
"icon_usr_b.gif",$this->lng->txt(
"ilinc_involved_users"));
571 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
574 $tbl->setHeaderNames(array(
"",$this->lng->txt(
"username"),$this->lng->txt(
"firstname"),$this->lng->txt(
"lastname"),$this->lng->txt(
"ilinc_coursemember_status"),$this->lng->txt(
"role"),$this->lng->txt(
"grp_options")));
575 $tbl->setHeaderVars(array(
"",
"login",
"firstname",
"lastname",
"ilinc_coursemember_status",
"role",
"functions"),$this->ctrl->getParameterArray($this,
"",
false));
576 $tbl->setColumnWidth(array(
"",
"20%",
"15%",
"15%",
"20%",
"20%",
"10%"));
581 $tbl->setHeaderNames(array($this->lng->txt(
"username"),$this->lng->txt(
"firstname"),$this->lng->txt(
"lastname"),$this->lng->txt(
"ilinc_coursemember_status"),$this->lng->txt(
"role"),$this->lng->txt(
"grp_options")));
582 $tbl->setHeaderVars(array(
"login",
"firstname",
"lastname",
"ilinc_coursemember_status",
"role",
"functions"),$this->ctrl->getParameterArray($this,
"",
false));
583 $tbl->setColumnWidth(array(
"20%",
"15%",
"15%",
"20%",
"20%",
"10%"));
588 $this->tpl->setVariable(
"MEMBER_TABLE",$tbl->tpl->get());
596 include_once
"./Services/Table/classes/class.ilTableGUI.php";
606 $offset =
$_GET[
"update_subscribers"] ?
$_GET[
"offset"] : 0;
607 $order =
$_GET[
"update_subscribers"] ?
$_GET[
"sort_by"] :
'login';
608 $direction =
$_GET[
"update_subscribers"] ?
$_GET[
"sort_order"] :
'';
612 $offset =
$_GET[
"offset"];
613 $order =
$_GET[
"sort_by"] ?
$_GET[
"sort_by"] :
"title";
614 $direction =
$_GET[
"sort_order"];
618 $offset =
$_GET[
"offset"];
619 $order =
$_GET[
"sort_by"] ?
$_GET[
"sort_by"] :
"title";
620 $direction =
$_GET[
"sort_order"];
624 $offset =
$_GET[
"offset"];
626 if (
$_GET[
"sort_by"] ==
"title" or empty(
$_GET[
"sort_by"]))
628 $_GET[
"sort_by"] =
"login";
630 $order =
$_GET[
"sort_by"];
631 $direction =
$_GET[
"sort_order"];
635 $tbl->setOrderColumn($order);
636 $tbl->setOrderDirection($direction);
637 $tbl->setOffset($offset);
638 $tbl->setLimit(
$_GET[
"limit"]);
640 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
641 $tbl->setData($result_set);
646 global $rbacsystem,$rbacreview;
648 $_SESSION[
"grp_role"] = $_POST[
"role"] = $_POST[
"role"] ? $_POST[
"role"] :
$_SESSION[
"grp_role"];
651 if(!$rbacsystem->checkAccess(
"write", $this->object->getRefId()))
653 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
656 if(!is_array($_POST[
"role"]))
664 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.grp_usr_selection.html");
665 $this->
__showButton(
"searchUserForm",$this->lng->txt(
"grp_new_search"));
669 foreach($_POST[
"role"] as $role_id)
671 $members = array_merge($rbacreview->assignedUsers($role_id),$members);
674 $members = array_unique($members);
679 foreach($members as
$user)
686 $user_ids[$counter] =
$user;
689 $f_result[$counter][] = $tmp_obj->getLogin();
690 $f_result[$counter][] = $tmp_obj->getLastname();
691 $f_result[$counter][] = $tmp_obj->getFirstname();
704 global $rbacsystem,$rbacreview,
$tree;
706 $_SESSION[
"grp_group"] = $_POST[
"group"] = $_POST[
"group"] ? $_POST[
"group"] :
$_SESSION[
"grp_group"];
709 if(!$rbacsystem->checkAccess(
"write", $this->object->getRefId()))
711 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
714 if(!is_array($_POST[
"group"]))
722 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.grp_usr_selection.html");
723 $this->
__showButton(
"searchUserForm",$this->lng->txt(
"grp_new_search"));
727 foreach($_POST[
"group"] as $group_id)
729 if (!$tree->isInTree($group_id))
738 $members = array_merge($tmp_obj->getGroupMemberIds(),$members);
743 $members = array_unique($members);
748 foreach($members as
$user)
755 $user_ids[$counter] =
$user;
758 $f_result[$counter][] = $tmp_obj->getLogin();
759 $f_result[$counter][] = $tmp_obj->getLastname();
760 $f_result[$counter][] = $tmp_obj->getFirstname();
806 if (!$this->ilias->getSetting(
"ilinc_active"))
808 $this->ilias->raiseError($lng->txt(
"ilinc_server_not_active"),$this->ilias->error_obj->MESSAGE);
811 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.icrs_members.html",
"Modules/ILinc");
814 $this->lng->loadLanguageModule(
'ilinc');
817 $is_admin = (bool) $rbacsystem->checkAccess(
"write", $this->object->getRefId());
821 $this->tpl->addBlockfile(
"BUTTONS",
"buttons",
"tpl.buttons.html");
822 $this->tpl->setCurrentBlock(
"btn_cell");
823 $this->tpl->setVariable(
"BTN_LINK",$this->ctrl->getLinkTargetByClass(
'ilRepositorySearchGUI',
'start'));
824 $this->tpl->setVariable(
"BTN_TXT",$this->lng->txt(
"ilinc_add_user"));
825 $this->tpl->parseCurrentBlock();
829 $val_contact =
"<img src=\"".ilUtil::getImagePath(
"icon_pencil_b.gif").
"\" alt=\"".$this->lng->txt(
"ilinc_mem_send_mail").
"\" title=\"".$this->lng->txt(
"ilinc_mem_send_mail").
"\" border=\"0\" vspace=\"0\"/>";
830 $val_change =
"<img src=\"".ilUtil::getImagePath(
"icon_change_b.gif").
"\" alt=\"".$this->lng->txt(
"ilinc_mem_change_status").
"\" title=\"".$this->lng->txt(
"ilinc_mem_change_status").
"\" border=\"0\" vspace=\"0\"/>";
831 $val_leave =
"<img src=\"".ilUtil::getImagePath(
"icon_group_out_b.gif").
"\" alt=\"".$this->lng->txt(
"ilinc_mem_leave").
"\" title=\"".$this->lng->txt(
"ilinc_mem_leave").
"\" border=\"0\" vspace=\"0\"/>";
835 $access_leave = $rbacsystem->checkAccess(
"leave",$this->object->getRefId());
836 $access_write = $rbacsystem->checkAccess(
"write",$this->object->getRefId());
838 $member_ids = $this->
object->getMemberIds();
841 $members = $this->
object->getMemberData($member_ids);
844 $docent_ids = $this->
object->getiLincMemberIds(
true);
845 $student_ids = $this->
object->getiLincMemberIds(
false);
847 $account_id = $this->ilias->account->getId();
850 foreach ($members as $mem)
852 $link_contact =
"ilias.php?baseClass=ilMailGUI&type=new&rcp_to=".$mem[
"login"];
853 $link_change = $this->ctrl->getLinkTarget($this,
"changeMember").
"&mem_id=".$mem[
"id"];
855 if (($mem[
"id"] == $account_id && $access_leave) || $access_delete)
857 $link_leave = $this->ctrl->getLinkTarget($this,
"RemoveMember").
"&mem_id=".$mem[
"id"];
863 $member_functions =
"<a href=\"$link_change\">$val_change</a>";
866 if (($mem[
"id"] == $account_id && $access_leave) || $access_write)
868 $link_leave = $this->ctrl->getLinkTarget($this,
"RemoveMember").
"&mem_id=".$mem[
"id"];
869 $member_functions .=
"<a href=\"$link_leave\">$val_leave</a>";
873 $str_member_roles = $this->
object->getMemberRolesTitle($mem[
"id"]);
877 $result_set[$counter][] = ilUtil::formCheckBox(0,
"user_id[]",$mem[
"id"]);
880 $user_ids[$counter] = $mem[
"id"];
882 $status = $this->
object->checkiLincMemberStatus($mem[
'ilinc_id'],$docent_ids,$student_ids);
884 if ($status == ILINC_MEMBER_NOTSET)
886 $status =
"<span class='warning'>".$this->lng->txt($status).
"</span>";
890 $status = $this->lng->txt($status);
895 $result_set[$counter][] = $mem[
"login"];
896 $result_set[$counter][] = $mem[
"firstname"];
897 $result_set[$counter][] = $mem[
"lastname"];
898 $result_set[$counter][] = $status;
899 $result_set[$counter][] = $str_member_roles;
900 $result_set[$counter][] =
"<a href=\"$link_contact\">".$val_contact.
"</a>".$member_functions;
904 unset($member_functions);
912 global $ilUser,$rbacsystem,$ilAccess,
$ilErr;
914 $next_class = $this->ctrl->getNextClass($this);
915 $cmd = $this->ctrl->getCmd();
920 case "ilconditionhandlerinterface":
921 include_once
'./classes/class.ilConditionHandlerInterface.php';
926 $this->ctrl->saveParameter($this,
'item_id',$_GET[
'item_id']);
927 $this->ctrl->forwardCommand($new_gui);
932 $this->ctrl->forwardCommand($new_gui);
936 case 'ilrepositorysearchgui':
937 include_once(
'./Services/Search/classes/class.ilRepositorySearchGUI.php');
939 $rep_search->setCallback($this,
'addUserObject');
942 $this->tabs_gui->setTabActive(
'members');
943 $this->ctrl->setReturn($this,
'members');
944 $ret =& $this->ctrl->forwardCommand($rep_search);
946 $this->tabs_gui->setSubTabActive(
'members');
949 case "ilobjilincclassroomgui":
950 include_once (
'./Modules/ILinc/classes/class.ilObjiLincClassroomGUI.php');
952 $ret =& $this->ctrl->forwardCommand($icla_gui);
955 case 'ilpermissiongui':
956 include_once(
"./classes/class.ilPermissionGUI.php");
958 $ret =& $this->ctrl->forwardCommand($perm_gui);
961 case 'ilpublicuserprofilegui':
962 require_once
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
964 $html = $this->ctrl->forwardCommand($profile_gui);
966 $this->tabs_gui->setTabActive(
'group_members');
967 $this->tabs_gui->setSubTabActive(
'grp_members_gallery');
968 $this->tpl->setVariable(
"ADM_CONTENT", $html);
972 if (!$this->
getCreationMode() and !$ilAccess->checkAccess(
'visible',
'',$this->object->getRefId(),
'icrs'))
974 $ilErr->raiseError($this->lng->txt(
"msg_no_perm_read"),$ilErr->MESSAGE);
992 if(!$rbacsystem->checkAccess(
'read', $this->object->getRefId()))
994 $this->ilias->raiseError($this->lng->txt(
'msg_no_perm_read'), $this->ilias->error_obj->MESSAGE);
997 if(strtolower(
$_GET[
'baseClass']) ==
'iladministrationgui')
1009 $url = $this->
object->userLogin($this->ilias->account);
1013 $this->ilias->raiseError($this->object->getErrorMsg(),$this->ilias->error_obj->FATAL);
1023 $this->lng->loadLanguageModule(
'search');
1026 if(!$rbacsystem->checkAccess(
"write", $this->object->getRefId()))
1028 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
1031 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.grp_members_search.html");
1033 $this->tpl->setVariable(
"F_ACTION",$this->ctrl->getFormAction($this));
1034 $this->tpl->setVariable(
"SEARCH_ASSIGN_USR",$this->lng->txt(
"grp_search_members"));
1035 $this->tpl->setVariable(
"SEARCH_SEARCH_TERM",$this->lng->txt(
"search_search_term"));
1036 $this->tpl->setVariable(
"SEARCH_VALUE",
$_SESSION[
"grp_search_str"] ?
$_SESSION[
"grp_search_str"] :
"");
1037 $this->tpl->setVariable(
"SEARCH_FOR",$this->lng->txt(
"exc_search_for"));
1038 $this->tpl->setVariable(
"SEARCH_ROW_TXT_USER",$this->lng->txt(
"exc_users"));
1039 $this->tpl->setVariable(
"SEARCH_ROW_TXT_ROLE",$this->lng->txt(
"exc_roles"));
1040 $this->tpl->setVariable(
"SEARCH_ROW_TXT_GROUP",$this->lng->txt(
"exc_groups"));
1041 $this->tpl->setVariable(
"BTN2_VALUE",$this->lng->txt(
"cancel"));
1042 $this->tpl->setVariable(
"BTN1_VALUE",$this->lng->txt(
"search"));
1044 $usr = ($_POST[
"search_for"] ==
"usr" || $_POST[
"search_for"] ==
"") ? 1 : 0;
1045 $grp = ($_POST[
"search_for"] ==
"grp") ? 1 : 0;
1046 $role = ($_POST[
"search_for"] ==
"role") ? 1 : 0;
1057 global $rbacsystem,
$tree;
1059 $_SESSION[
"grp_search_str"] = $_POST[
"search_str"] = $_POST[
"search_str"] ? $_POST[
"search_str"] :
$_SESSION[
"grp_search_str"];
1060 $_SESSION[
"grp_search_for"] = $_POST[
"search_for"] = $_POST[
"search_for"] ? $_POST[
"search_for"] :
$_SESSION[
"grp_search_for"];
1063 if(!$rbacsystem->checkAccess(
"write", $this->object->getRefId()))
1065 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
1068 if(!isset($_POST[
"search_for"]) or !isset($_POST[
"search_str"]))
1084 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.grp_usr_selection.html");
1085 $this->
__showButton(
"searchUserForm",$this->lng->txt(
"grp_new_search"));
1088 $f_result = array();
1090 switch($_POST[
"search_for"])
1100 $user_ids[$counter] = $user[
"id"];
1103 $f_result[$counter][] = $tmp_obj->getLogin();
1104 $f_result[$counter][] = $tmp_obj->getFirstname();
1105 $f_result[$counter][] = $tmp_obj->getLastname();
1119 if ($role[
"id"] == ANONYMOUS_ROLE_ID)
1130 if ($tmp_obj->getCountMembers() == 0)
1135 $role_ids[$counter] = $role[
"id"];
1138 $f_result[$counter][] = array($tmp_obj->getTitle(),$tmp_obj->getDescription());
1139 $f_result[$counter][] = $tmp_obj->getCountMembers();
1152 if(!$tree->isInTree($group[
"id"]))
1163 if ($tmp_obj->getId() == $this->
object->getId())
1168 $grp_ids[$counter] = $group[
"id"];
1171 $f_result[$counter][] = array($tmp_obj->getTitle(),$tmp_obj->getDescription());
1172 $f_result[$counter][] = $tmp_obj->getCountMembers();
1178 if(!count($f_result))
1198 $user_ids = $_POST[
"user"];
1202 if (empty($user_ids[0]))
1205 $this->ilErr->raiseError($this->lng->txt(
"no_checkbox"),$this->ilErr->MESSAGE);
1208 foreach ($user_ids as $new_member)
1210 $user_obj = $this->ilias->obj_factory->getInstanceByObjId($new_member);
1212 if (!$this->object->addMember($user_obj,$this->object->getDefaultMemberRole(),
false))
1215 $this->ilErr->raiseError($this->object->getErrorMsg(),$this->ilErr->MESSAGE);
1218 $user_obj->addDesktopItem($this->object->getRefId(),
"icrs");
1219 $mail->sendMail($user_obj->getLogin(),
"",
"",$this->lng->txtlng(
"common",
"ilinc_mail_subj_new_subscription",$user_obj->getLanguage()).
": ".$this->object->getTitle(),$this->lng->txtlng(
"common",
"ilinc_mail_body_new_subscription",$user_obj->getLanguage()),array(),array(
'normal'));
1238 global $ilUser,$rbacreview;
1240 $user_ids = array();
1242 if (isset($_POST[
"user_id"]))
1244 $user_ids = $_POST[
"user_id"];
1246 else if (isset(
$_GET[
"mem_id"]))
1248 $user_ids[] =
$_GET[
"mem_id"];
1251 if (empty($user_ids[0]))
1253 $this->ilErr->raiseError($this->lng->txt(
"no_checkbox"),$this->ilErr->MESSAGE);
1256 if (count($user_ids) == 1 and $this->ilias->account->getId() != $user_ids[0])
1258 if (!in_array(SYSTEM_ROLE_ID,$rbacreview->assignedRoles($ilUser->getId()))
1259 and !in_array($this->ilias->account->getId(),$this->
object->getAdminIds()))
1261 $this->ilErr->raiseError($this->lng->txt(
"ilinc_err_no_permission"),$this->ilErr->MESSAGE);
1265 $is_dismiss_me = array_search($this->ilias->account->getId(),$user_ids);
1267 $confirm =
"confirmedRemoveMember";
1268 $cancel =
"canceled";
1269 $info = ($is_dismiss_me !==
false) ?
"ilinc_dismiss_myself" :
"ilinc_dismiss_member";
1271 $return =
"members";
1281 function confirmationObject($user_id=
"", $confirm, $cancel, $info=
"", $status=
"",$a_cmd_return_location =
"")
1283 $this->data[
"cols"] = array(
"type",
"title",
"description",
"last_change");
1285 if (is_array($user_id))
1287 foreach ($user_id as $id)
1289 $obj_data =& $this->ilias->obj_factory->getInstanceByObjId($id);
1291 $this->data[
"data"][
"$id"] = array(
1292 "type" => $obj_data->getType(),
1293 "title" => $obj_data->getTitle(),
1294 "desc" => $obj_data->getDescription(),
1295 "last_update" => $obj_data->getLastUpdateDate(),
1302 $obj_data =& $this->ilias->obj_factory->getInstanceByObjId($user_id);
1304 $this->data[
"data"][
"$id"] = array(
1305 "type" => $obj_data->getType(),
1306 "title" => $obj_data->getTitle(),
1307 "desc" => $obj_data->getDescription(),
1308 "last_update" => $obj_data->getLastUpdateDate(),
1313 if(is_array($user_id))
1315 $_SESSION[
"saved_post"][
"user_id"] = $user_id;
1319 $_SESSION[
"saved_post"][
"user_id"][0] = $user_id;
1324 $_SESSION[
"saved_post"][
"status"] = $status;
1327 $this->data[
"buttons"] = array( $cancel => $this->lng->txt(
"cancel"),
1328 $confirm => $this->lng->txt(
"confirm"));
1332 $this->tpl->setVariable(
"TPLPATH",$this->tpl->tplPath);
1338 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this).
"&cmd_return_location=".$a_cmd_return_location);
1341 foreach ($this->data[
"cols"] as $key)
1343 $this->tpl->setCurrentBlock(
"table_header");
1344 $this->tpl->setVariable(
"TEXT",$this->lng->txt($key));
1345 $this->tpl->parseCurrentBlock();
1352 foreach ($this->data[
"data"] as $key => $value)
1355 foreach ($value as $key => $cell_data)
1357 $this->tpl->setCurrentBlock(
"table_cell");
1366 $this->tpl->setVariable(
"TEXT_CONTENT",$cell_data);
1368 $this->tpl->parseCurrentBlock();
1371 $this->tpl->setCurrentBlock(
"table_row");
1373 $this->tpl->parseCurrentBlock();
1379 foreach ($this->data[
"buttons"] as $name => $value)
1381 $this->tpl->setCurrentBlock(
"operation_btn");
1383 $this->tpl->setVariable(
"BTN_NAME",$name);
1384 $this->tpl->setVariable(
"BTN_VALUE",$value);
1385 $this->tpl->parseCurrentBlock();
1397 $removed_self =
false;
1402 foreach(
$_SESSION[
"saved_post"][
"user_id"] as $member_id)
1406 if (!$this->object->removeMember($user_obj))
1412 $user_obj->dropDesktopItem($this->object->getRefId(),
"icrs");
1414 if (!$removed_self and $user_obj->getId() == $this->ilias->account->getId())
1416 $removed_self =
true;
1420 $mail->sendMail($user_obj->getLogin(),
"",
"",$this->lng->txtlng(
"common",
"ilinc_mail_subj_subscription_cancelled",$user_obj->getLanguage()).
": ".$this->object->getTitle(),$this->lng->txtlng(
"common",
"ilinc_mail_body_subscription_cancelled",$user_obj->getLanguage()),array(),array(
'normal'));
1430 ilUtil::redirect(
"repository.php?ref_id=".$this->tree->getParentId($this->ref_id));
1442 global $rbacreview,$ilUser;
1444 if (
$_GET[
"sort_by"] ==
"title" or
$_GET[
"sort_by"] ==
"")
1446 $_GET[
"sort_by"] =
"login";
1449 $member_ids = array();
1451 if (isset($_POST[
"user_id"]))
1453 $member_ids = $_POST[
"user_id"];
1455 else if (isset(
$_GET[
"mem_id"]))
1457 $member_ids[0] =
$_GET[
"mem_id"];
1460 if (empty($member_ids[0]))
1462 $this->ilErr->raiseError($this->lng->txt(
"no_checkbox"),$this->ilErr->MESSAGE);
1465 if (!in_array(SYSTEM_ROLE_ID,$rbacreview->assignedRoles($ilUser->getId()))
1466 and !in_array($this->ilias->account->getId(),$this->
object->getAdminIds()))
1468 $this->ilErr->raiseError($this->lng->txt(
"grp_err_no_permission"),$this->ilErr->MESSAGE);
1471 $stati = array_flip($this->object->getLocalRoles(
true));
1474 $docent_ids = $this->
object->getiLincMemberIds(
true);
1475 $student_ids = $this->
object->getiLincMemberIds(
false);
1478 foreach ($member_ids as $member_id)
1480 $member =& $this->ilias->obj_factory->getInstanceByObjId($member_id);
1481 $mem_status = $this->
object->getMemberRoles($member_id);
1483 include_once (
'./Modules/ILinc/classes/class.ilObjiLincUser.php');
1486 $ilinc_status = $this->
object->checkiLincMemberStatus($ilinc_user->id,$docent_ids,$student_ids);
1488 $docent = 0; $student = 0;
1490 if ($ilinc_status == ILINC_MEMBER_DOCENT)
1494 elseif ($ilinc_status == ILINC_MEMBER_STUDENT)
1499 $radio1 =
ilUtil::formRadioButton($docent,
"ilinc_member_status_select[".$member->getId().
"][".$ilinc_user->id.
"]",ILINC_MEMBER_DOCENT);
1500 $radio2 =
ilUtil::formRadioButton($student,
"ilinc_member_status_select[".$member->getId().
"][".$ilinc_user->id.
"]",ILINC_MEMBER_STUDENT);
1503 $this->data[
"data"][$member->getId()]= array(
1504 "login" => $member->getLogin(),
1505 "firstname" => $member->getFirstname(),
1506 "lastname" => $member->getLastname(),
1507 "ilinc_coursemember_status" => $radio1.
" ".$this->lng->txt(
"ilinc_docent").
"<br/>".$radio2.
" ".$this->lng->txt(
"ilinc_student"),
1508 "grp_role" =>
ilUtil::formSelect($mem_status,
"member_status_select[".$member->getId().
"][]",$stati,
true,
true,3)
1517 $this->tpl->addBlockfile(
"ADM_CONTENT",
"member_table",
"tpl.table.html");
1522 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1524 $this->data[
"buttons"] = array(
"members" => $this->lng->txt(
"back"),
1525 "updateMemberStatus" => $this->lng->txt(
"confirm"));
1527 $this->tpl->setCurrentBlock(
"tbl_action_row");
1528 $this->tpl->setVariable(
"COLUMN_COUNTS",5);
1532 foreach ($this->data[
"buttons"] as $name => $value)
1534 $this->tpl->setCurrentBlock(
"tbl_action_btn");
1535 $this->tpl->setVariable(
"BTN_NAME",$name);
1536 $this->tpl->setVariable(
"BTN_VALUE",$value);
1537 $this->tpl->parseCurrentBlock();
1542 $output = array_slice($this->data[
"data"],
$_GET[
"offset"],
$_GET[
"limit"]);
1545 include_once
"./Services/Table/classes/class.ilTableGUI.php";
1550 $tbl->setTitle($this->lng->txt(
"grp_mem_change_status"),
"icon_usr_b.gif",$this->lng->txt(
"grp_mem_change_status"));
1552 $tbl->setHeaderNames(array($this->lng->txt(
"username"),$this->lng->txt(
"firstname"),$this->lng->txt(
"lastname"),$this->lng->txt(
"ilinc_coursemember_status"),$this->lng->txt(
"role")));
1553 $tbl->setHeaderVars(array(
"login",
"firstname",
"lastname",
"ilinc_coursemember_status",
"role"),$this->ctrl->getParameterArray($this,
"",
false));
1555 $tbl->setColumnWidth(array(
"20%",
"15%",
"15%",
"15%",
"30%"));
1557 $this->tpl->setCurrentBlock(
"tbl_action_row");
1558 $this->tpl->parseCurrentBlock();
1561 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
1562 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
1563 $tbl->setLimit(
$_GET[
"limit"]);
1564 $tbl->setOffset(
$_GET[
"offset"]);
1565 $tbl->setMaxCount(count($this->data[
"data"]));
1567 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
1581 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1583 $this->ilErr->raiseError(
'permission_denied',$this->ilErr->MESSAGE);
1586 if(isset($_POST[
'member_status_select']))
1588 foreach($_POST[
'member_status_select'] as $key => $value)
1590 $this->
object->leave($key);
1591 $this->
object->join($key,$value);
1595 if(isset($_POST[
'ilinc_member_status_select']))
1597 $users_to_add = array();
1598 $users_to_register = array();
1599 $users_to_unregister = array();
1601 foreach($_POST[
'ilinc_member_status_select'] as $user_id => $ilinc_arr)
1603 $ilinc_user_id = key($ilinc_arr);
1604 $ilinc_user_status = current($ilinc_arr);
1611 if($ilinc_user_id == 0)
1618 include_once
'Modules/ILinc/classes/class.ilObjiLincUser.php';
1621 if(!$ilinc_user->id)
1624 $users_to_add[] =& $user_obj;
1628 $users_to_register[$ilinc_user->id] = ILINC_MEMBER_STUDENT;
1635 $users_to_unregister[] = $ilinc_user_id;
1636 $users_to_register[$ilinc_user_id] = $ilinc_user_status;
1640 if(!$this->object->unregisterUsers($users_to_unregister))
1644 $this->ilErr->raiseError($this->object->getErrorMsg(),$this->ilErr->MESSAGE);
1647 if(count($users_to_add) > 0)
1650 foreach ($users_to_add as
$user)
1652 if (!$this->object->addUser($user))
1656 $this->ilErr->raiseError($this->object->getErrorMsg(),$this->ilErr->MESSAGE);
1661 include_once
'Modules/ILinc/classes/class.ilObjiLincUser.php';
1663 $users_to_register[$ilinc_user->id] = ILINC_MEMBER_STUDENT;
1668 if(!$this->object->registerUsers($users_to_register))
1672 $this->ilErr->raiseError($this->object->getErrorMsg(),$this->ilErr->MESSAGE);
1682 if(!$this->ilias->getSetting(
'ilinc_active'))
1684 $this->ilias->raiseError($this->lng->txt(
'ilinc_server_not_active'), $this->ilias->error_obj->MESSAGE);
1689 return $this->tpl->setVariable(
'ADM_CONTENT', $this->form_gui->getHtml());
1694 $this->form_gui->setValuesByArray(array(
1695 'title' => $this->object->getTitle(),
1696 'desc' => $this->
object->getDescription(),
1697 'activated' => (int)$this->object->activated,
1698 'akclassvalue1' => $this->object->getAKClassValue1(),
1699 'akclassvalue2' => $this->
object->getAKClassValue2(),
1705 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
1708 $this->form_gui->setTableWidth(
'600');
1709 if($a_mode ==
'create')
1711 $this->form_gui->setTitle($this->lng->txt(
'icrs_new'));
1715 $this->form_gui->setTitle($this->lng->txt(
'icrs_edit'));
1720 $text_input =
new ilTextInputGUI($this->lng->txt(
'title'),
'title');
1722 $this->form_gui->addItem($text_input);
1726 $this->form_gui->addItem($text_area);
1730 $this->form_gui->addItem($text_area);
1733 if($this->ilias->getSetting(
'ilinc_akclassvalues_active'))
1736 $section_header->setTitle($this->lng->txt(
'akclassvalues'));
1737 $this->form_gui->addItem($section_header);
1739 $text_input =
new ilTextInputGUI($this->lng->txt(
'akclassvalue1'),
'akclassvalue1');
1740 if($this->ilias->getSetting(
'ilinc_akclassvalues_required'))
1744 $this->form_gui->addItem($text_input);
1746 $text_input =
new ilTextInputGUI($this->lng->txt(
'akclassvalue2'),
'akclassvalue2');
1747 $this->form_gui->addItem($text_input);
1750 if($this->call_by_reference)
1752 $this->ctrl->setParameter($this,
'obj_id', $this->obj_id);
1756 if($a_mode ==
'create')
1758 $this->ctrl->setParameter($this,
'mode',
'create');
1759 $this->ctrl->setParameter($this,
'new_type',
'icrs');
1761 $this->form_gui->addCommandButton(
'save', $this->lng->txt(
'icrs_add'));
1762 $this->form_gui->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
1763 $this->form_gui->setFormAction($this->ctrl->getFormAction($this,
'save'));
1767 $this->form_gui->addCommandButton(
'update', $this->lng->txt(
'save'));
1768 $this->form_gui->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
1769 $this->form_gui->setFormAction($this->ctrl->getFormAction($this,
'update'));
1777 if(!$ilAccess->checkAccess(
'join',
'', (
int)
$_GET[
'ref_id']))
1779 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
1782 if(!$this->object->addMember($this->ilias->account, $this->object->getDefaultMemberRole(),
false))
1784 $this->ilErr->raiseError($this->object->getErrorMsg(), $this->ilErr->MESSAGE);
1787 $this->ilias->account->addDesktopItem($this->object->getRefId(),
"icrs");
1800 global $rbacsystem, $ilUser;
1806 $this->tabs_gui->addSubTabTarget(
'members', $this->ctrl->getLinkTarget($this,
'members'), array(
'members',
'changeMember',
'RemoveMember'), get_class($this));
1807 $this->tabs_gui->addSubTabTarget(
'icrs_members_gallery', $this->ctrl->getLinkTarget($this,
'membersGallery'),
'membersGallery', get_class($this));
1808 $this->tabs_gui->addSubTabTarget(
'mail_members', $this->ctrl->getLinkTarget($this,
'mailMembers'),
'mailMembers', get_class($this));
1815 global $rbacreview, $ilObjDataCache;
1817 include_once
'Services/AccessControl/classes/class.ilObjRole.php';
1819 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail_members.html',
'Services/Mail');
1823 $link_data = $this->
object->_getLinkToObject( $this->object->getRefId() );
1824 $link_to_seminar = ILIAS_HTTP_PATH.
'/'.$link_data[0];
1826 $this->tpl->setVariable(
'MAILACTION',
'ilias.php?baseClass=ilMailGUI&type=role');
1827 $this->tpl->setVariable(
'ADDITIONAL_MESSAGE_TEXT', $link_to_seminar);
1829 $this->tpl->setVariable(
'OK', $this->lng->txt(
'ok'));
1831 $role_folder = $rbacreview->getRoleFolderOfObject( $this->object->getRefId() );
1832 $role_ids = $rbacreview->getRolesOfRoleFolder($role_folder[
'ref_id'],
false);
1833 foreach($role_ids as $role_id)
1835 $this->tpl->setCurrentBlock(
'mailbox_row');
1836 $role_addr = $rbacreview->getRoleMailboxAddress( $role_id );
1837 $this->tpl->setVariable(
'CHECK_MAILBOX',
ilUtil::formCheckbox(1,
'roles[]', htmlspecialchars($role_addr)));
1841 $this->tpl->setVariable(
'MAILBOX', $role_addr);
1846 $this->tpl->setVariable(
'MAILBOX',
ilObjRole::_getTranslation( $ilObjDataCache->lookupTitle( $role_id ) ).
' (' . $role_addr .
')');
1849 $this->tpl->parseCurrentBlock();
1862 $is_admin = (bool) $rbacsystem->checkAccess(
'write', $this->object->getRefId());
1864 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.icrs_members_gallery.html',
'Modules/ILinc');
1868 $this->lng->loadLanguageModule(
'ilinc');
1870 $member_ids = $this->
object->getMemberIds();
1873 $members = $this->
object->getMemberData($member_ids);
1876 $admin_ids = $this->
object->getiLincMemberIds(
true);
1881 foreach($members as $member)
1889 $public_profile = $usr_obj->getPref(
'public_profile');
1892 $this->ctrl->setParameterByClass(
'ilpublicuserprofilegui',
'user', $member[
'id']);
1893 $profile_target = $this->ctrl->getLinkTargetByClass(
'ilpublicuserprofilegui',
'getHTML');
1896 $file = $usr_obj->getPersonalPicturePath(
'xsmall');
1898 switch(in_array($member[
'ilinc_id'],$admin_ids))
1902 if($public_profile ==
'y')
1904 $this->tpl->setCurrentBlock(
'tutor_linked');
1905 $this->tpl->setVariable(
'LINK_PROFILE', $profile_target);
1906 $this->tpl->setVariable(
'SRC_USR_IMAGE',
$file);
1907 $this->tpl->parseCurrentBlock();
1911 $this->tpl->setCurrentBlock(
'tutor_not_linked');
1912 $this->tpl->setVariable(
'SRC_USR_IMAGE',
$file);
1913 $this->tpl->parseCurrentBlock();
1915 $this->tpl->setCurrentBlock(
'tutor');
1919 if($public_profile ==
'y')
1921 $this->tpl->setCurrentBlock(
'member_linked');
1922 $this->tpl->setVariable(
'LINK_PROFILE', $profile_target);
1923 $this->tpl->setVariable(
'SRC_USR_IMAGE',
$file);
1924 $this->tpl->parseCurrentBlock();
1928 $this->tpl->setCurrentBlock(
'member_not_linked');
1929 $this->tpl->setVariable(
'SRC_USR_IMAGE',
$file);
1930 $this->tpl->parseCurrentBlock();
1932 $this->tpl->setCurrentBlock(
'member');
1937 if($public_profile ==
'y')
1939 $this->tpl->setVariable(
'FIRSTNAME', $member[
'firstname']);
1940 $this->tpl->setVariable(
'LASTNAME', $member[
'lastname']);
1943 $this->tpl->setVariable(
'LOGIN', $usr_obj->getLogin());
1944 $this->tpl->parseCurrentBlock();
1947 $this->tpl->setCurrentBlock(
'members');
1948 $this->tpl->setVariable(
'MEMBERS_TABLE_HEADER',$this->lng->txt(
'ilinc_involved_users'));
1949 $this->tpl->parseCurrentBlock();
1952 $this->tpl->setVariable(
'TITLE', $this->lng->txt(
'icrs_members_print_title'));
1955 $headline = $this->
object->getTitle().
'<br />'.$this->
object->getDescription();
1956 $this->tpl->setVariable(
'HEADLINE', $headline);
1970 if ($ilAccess->checkAccess(
'read',
'', $a_target))
1972 $_GET[
'cmd'] =
'frameset';
1973 $_GET[
'ref_id'] = $a_target;
1977 $ilErr->raiseError($lng->txt(
'msg_no_perm_read'), $ilErr->FATAL);
1980 include
'repository.php';