protected function initAttendanceList() { include_once './Modules/Course/classes/class.ilCourseParticipants.php'; $members_obj = ilCourseParticipants::_getInstanceByObjId($this->object->getId()); include_once './Modules/Course/classes/class.ilCourseWaitingList.php'; $waiting_list = new ilCourseWaitingList($this->object->getId()); include_once 'Services/Membership/classes/class.ilAttendanceList.php'; $list = new ilAttendanceList($this, $members_obj, $waiting_list); $list->setId('crsmemlst'); $list->setTitle($this->lng->txt('crs_members_print_title'), $this->lng->txt('obj_crs') . ': ' . $this->object->getTitle()); include_once './Services/Tracking/classes/class.ilObjUserTracking.php'; $this->show_tracking = (ilObjUserTracking::_enabledLearningProgress() and ilObjUserTracking::_enabledUserRelatedData()); if ($this->show_tracking) { include_once './Services/Object/classes/class.ilObjectLP.php'; $olp = ilObjectLP::getInstance($this->object->getId()); $this->show_tracking = $olp->isActive(); } if ($this->show_tracking) { $list->addPreset('progress', $this->lng->txt('learning_progress'), true); } include_once './Services/PrivacySecurity/classes/class.ilPrivacySettings.php'; $privacy = ilPrivacySettings::_getInstance(); if ($privacy->enabledCourseAccessTimes()) { $list->addPreset('access', $this->lng->txt('last_access'), true); } $list->addPreset('status', $this->lng->txt('crs_status'), true); $list->addPreset('passed', $this->lng->txt('crs_passed'), true); return $list; }
/** * Init attendance list object * * @return ilAttendanceList */ protected function initAttendanceList() { $members_obj = $this->initContainer(true); include_once 'Services/Membership/classes/class.ilAttendanceList.php'; $list = new ilAttendanceList($this, $members_obj); $list->setId('sessattlst'); $event_app = $this->object->getFirstAppointment(); ilDatePresentation::setUseRelativeDates(false); $desc = ilDatePresentation::formatPeriod($event_app->getStart(), $event_app->getEnd()); ilDatePresentation::setUseRelativeDates(true); $desc .= " " . $this->object->getTitle(); $list->setTitle($this->lng->txt('sess_attendance_list'), $desc); $list->addPreset('mark', $this->lng->txt('trac_mark'), true); $list->addPreset('comment', $this->lng->txt('trac_comment'), true); if ($this->object->enabledRegistration()) { $list->addPreset('registered', $this->lng->txt('event_tbl_registered'), true); } $list->addPreset('participated', $this->lng->txt('event_tbl_participated'), true); $list->addBlank($this->lng->txt('sess_signature')); $list->addUserFilter('registered', $this->lng->txt('event_list_registered_only')); return $list; }
/** * Init attendance list object * * @return ilAttendanceList */ protected function initAttendanceList() { include_once './Modules/Group/classes/class.ilGroupParticipants.php'; $members_obj = ilGroupParticipants::_getInstanceByObjId($this->object->getId()); include_once 'Services/Membership/classes/class.ilAttendanceList.php'; $list = new ilAttendanceList($this, $members_obj); $list->setId('grpmemlst'); $list->setTitle($this->lng->txt('grp_members_print_title'), $this->lng->txt('obj_grp') . ': ' . $this->object->getTitle()); include_once './Services/Tracking/classes/class.ilObjUserTracking.php'; include_once './Services/Tracking/classes/class.ilLPObjSettings.php'; $this->show_tracking = (ilObjUserTracking::_enabledLearningProgress() and ilObjUserTracking::_enabledUserRelatedData() and ilLPObjSettings::_lookupMode($this->object->getId()) != LP_MODE_DEACTIVATED); if ($this->show_tracking) { $this->lng->loadLanguageModule('trac'); $list->addPreset('progress', $this->lng->txt('learning_progress'), true); } include_once './Services/PrivacySecurity/classes/class.ilPrivacySettings.php'; $privacy = ilPrivacySettings::_getInstance(); if ($privacy->enabledGroupAccessTimes()) { $list->addPreset('access', $this->lng->txt('last_access'), true); } return $list; }