3 require_once
'Services/Table/classes/class.ilTable2GUI.php';
4 require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMembersStorageDB.php';
5 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
6 require_once
'Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
7 require_once
'Services/Tracking/classes/class.ilLPStatus.php';
9 public function __construct($a_parent_obj, $a_parent_cmd=
"", $a_template_context=
"") {
10 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
12 $this->ctrl = $DIC[
'ilCtrl'];
13 $this->lng = $DIC[
'lng'];
19 $this->
setRowTemplate(
"tpl.members_table_row.html",
"Modules/IndividualAssessment");
20 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
"view"));
21 $this->parent_obj = $a_parent_obj;
26 $this->viewer_id = $DIC[
'ilUser']->getId();
30 $this->
setData(iterator_to_array($a_parent_obj->object->loadMembers()));
35 ,
'login' =>
array(
'login'));
36 if($this->may_view || $this->may_edit) {
48 $this->tpl->setCurrentBlock(
'access_warning');
49 $this->tpl->setVariable(
'PARENT_ACCESS', $this->lng->txt(
'usr_account_inactive'));
50 $this->tpl->parseCurrentBlock();
52 if($this->may_view || $this->may_edit) {
53 $this->tpl->setCurrentBlock(
'lp_info');
56 $this->tpl->setVariable(
"GRADED_BY",
61 $this->tpl->parseCurrentBlock();
88 return $this->lng->txt(
'iass_status_pending');
91 return $this->lng->txt(
'iass_status_completed');
94 return $this->lng->txt(
'iass_status_failed');
101 $l->setListTitle($this->lng->txt(
"actions"));
103 $this->ctrl->setParameterByClass(
'ilIndividualAssessmentMemberGUI',
'usr_id', $a_set[
'usr_id']);
106 if (($a_set[
'finalized'] && $this->may_edit && !$edited_by_other) || $this->may_view) {
107 $target = $this->ctrl->getLinkTargetByClass(
'ilIndividualAssessmentMemberGUI',
'view');
108 $l->addItem($this->lng->txt(
'iass_usr_view'),
'view',
$target);
110 if(!$a_set[
'finalized'] && $this->may_edit && !$edited_by_other) {
111 $target = $this->ctrl->getLinkTargetByClass(
'ilIndividualAssessmentMemberGUI',
'edit');
112 $l->addItem($this->lng->txt(
'iass_usr_edit'),
'edit',
$target);
114 if(!$a_set[
'finalized'] && $this->may_book) {
115 $this->ctrl->setParameter($this->parent_obj,
'usr_id', $a_set[
'usr_id']);
116 $target = $this->ctrl->getLinkTarget($this->parent_obj,
'removeUserConfirmation');
117 $this->ctrl->setParameter($this->parent_obj,
'usr_id', null);
118 $l->addItem($this->lng->txt(
'iass_usr_remove'),
'removeUser',
$target);
120 $this->ctrl->setParameterByClass(
'ilIndividualAssessmentMemberGUI',
'usr_id', null);
121 return $l->getHTML();
130 return $this->parent_obj->object->accessHandler()
131 ->checkAccessToObj($this->parent_obj->object,
'edit_learning_progress');
135 return $this->parent_obj->object->accessHandler()
136 ->checkAccessToObj($this->parent_obj->object,
'read_learning_progress');
140 return $this->parent_obj->object->accessHandler()
141 ->checkAccessToObj($this->parent_obj->object,
'edit_members');
const LP_STATUS_COMPLETED_NUM
setExternalSorting($a_val)
Set external sorting.
static _getImagePathForStatus($a_status)
Get image path for status.
getImagetPathForStatus($a_status)
const LP_STATUS_NOT_ATTEMPTED
setExternalSegmentation($a_val)
Set external segmentation.
const LP_STATUS_IN_PROGRESS_NUM
const FIELD_LEARNING_PROGRESS
getEntryForStatus($a_status)
buildActionDropDown($a_set)
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Play around with inserting and removing rows and columns
const FIELD_EXAMINER_FIRSTNAME
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.
setWasEditedByOtherUser($set)
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
const FIELD_EXAMINER_LASTNAME
setEnableHeader($a_enableheader)
Set Enable Header.
static _lookupActive($a_usr_id)
Check user account active.
setEnableTitle($a_enabletitle)
Set Enable Title.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
const LP_STATUS_FAILED_NUM