3require_once 
'Services/Table/classes/class.ilTable2GUI.php';
 
    4require_once 
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMembersStorageDB.php';
 
    5require_once 
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
 
    6require_once 
'Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
 
    7require_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();
 
   27                foreach ($this->columns as $lng_var => 
$params) {
 
   30                $this->
setData(iterator_to_array($a_parent_obj->object->loadMembers()));
 
   34                $columns = array( 
'name'                                => array(
'name')
 
   35                                                , 
'login'                               => array(
'login'));
 
   36                if($this->may_view || $this->may_edit) {
 
   37                        $columns[
'grading'] = array(
'lp_status');
 
   38                        $columns[
'iass_graded_by'] = array(
'iass_graded_by');
 
   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');
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
getEntryForStatus($a_status)
getImagetPathForStatus($a_status)
fillRow($a_set)
Standard Version of Fill Row.
buildActionDropDown($a_set)
setWasEditedByOtherUser($set)
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor.
const FIELD_EXAMINER_FIRSTNAME
const FIELD_LEARNING_PROGRESS
const FIELD_EXAMINER_LASTNAME
const LP_STATUS_COMPLETED_NUM
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_FAILED_NUM
const LP_STATUS_NOT_ATTEMPTED
static _getImagePathForStatus($a_status)
Get image path for status.
static _lookupActive($a_usr_id)
Check user account active.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setEnableHeader($a_enableheader)
Set Enable Header.
setExternalSorting($a_val)
Set external sorting.
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.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setExternalSegmentation($a_val)
Set external segmentation.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.