2 include_once (
'./Services/Table/classes/class.ilTable2GUI.php');
24 $this->
setId(
'available_roles'.$this->parent_obj->user->getId());
28 $this->
setRowTemplate(
"tpl.available_roles_status_row.html",
"Services/AccessControl");
31 $this->
addColumn($lng->txt(
"role"),
"role",
"32%");
32 $this->
addColumn(str_replace(
" ",
" ",$lng->txt(
"info_permission_source")),
"effective_from",
"32%");
33 $this->
addColumn(str_replace(
" ",
" ",$lng->txt(
"info_permission_origin")),
"original_position");
35 include_once (
'./Services/Link/classes/class.ilLink.php');
48 $img_info = $lng->txt(
"info_assigned");
53 $img_info = $lng->txt(
"info_not_assigned");
55 $this->tpl->setVariable(
"IMG_PATH", $img_path);
56 $this->tpl->setVariable(
"IMG_INFO", $img_info);
58 $link = $ilCtrl->getLinkTargetByClass(array(ilpermissiongui),
'perm',
'',
true);
59 $this->tpl->setVariable(
"ROLE_LINK", $link);
60 $this->tpl->setVariable(
"TXT_ROLE", $a_set[
"role"]);
62 if($a_set[
"effective_from"] !=
"")
64 $this->tpl->setCurrentBlock(
"effective_from");
65 $this->tpl->setVariable(
"EFFECTIVE_FROM_LINK",
ilLink::_getLink($a_set[
"effective_from_ref_id"]));
66 $this->tpl->setVariable(
"TXT_EFFECTIVE_FROM", $a_set[
"effective_from"]);
67 $this->tpl->parseCurrentBlock();
70 if($a_set[
"original_position_ref_id"] !==
false)
72 $this->tpl->setCurrentBlock(
"original_position_with_link");
73 $this->tpl->setVariable(
"TXT_ORIGINAL_POSITION_WITH_LINK", $a_set[
"original_position"]);
74 $this->tpl->setVariable(
"ORIGINAL_POSITION_LINK",
ilLink::_getLink($a_set[
"original_position_ref_id"]));
75 $this->tpl->parseCurrentBlock();
79 $this->tpl->setVariable(
"TXT_ORIGINAL_POSITION", $a_set[
"original_position"]);