76 $this->main_tpl =
$DIC->ui()->mainTemplate();
187 switch ($DIC->ctrl()->getNextClass()) {
188 case 'ilparticipantstestresultsgui':
190 if (!$this->
getTestAccess()->checkParticipantsResultsAccess()) {
201 $DIC->ctrl()->forwardCommand($gui);
204 case 'ilmytestresultsgui':
206 if (!$this->
getTestTabs()->needsMyResultsSubTab()) {
217 $DIC->ctrl()->forwardCommand($gui);
220 case 'iltestevalobjectiveorientedgui':
222 if (!$this->
getTestTabs()->needsLoResultsSubTab()) {
230 $DIC->ctrl()->forwardCommand($gui);
233 case 'ilmytestsolutionsgui':
235 if (!$this->
getTestTabs()->needsMySolutionsSubTab()) {
245 $DIC->ctrl()->forwardCommand($gui);
248 case 'iltesttoplistgui':
250 if (!$this->
getTestTabs()->needsHighSoreSubTab()) {
257 $DIC->ctrl()->forwardCommand($gui);
260 case 'iltestskillevaluationgui':
267 $DIC->repositoryTree(),
269 $DIC[
'component.repository'],
272 $dynamicQuestionSetConfig->loadFromDb();
274 $questionList->setParentObjId($dynamicQuestionSetConfig->getSourceQuestionPoolId());
281 $questionList->load();
289 $DIC->ui()->mainTemplate(),
294 $gui->setQuestionList($questionList);
298 $DIC->ctrl()->forwardCommand($gui);
301 case strtolower(__CLASS__):
304 $command =
$DIC->ctrl()->getCmd(self::DEFAULT_CMD) .
'Cmd';
313 if ($this->testObj->canShowTestResults($this->getTestSession())) {
314 if ($this->objectiveParent->isObjectiveOrientedPresentationRequired()) {
315 $DIC->ctrl()->redirectByClass(
'ilTestEvalObjectiveOrientedGUI');
318 $DIC->ctrl()->redirectByClass(array(
'ilMyTestResultsGUI',
'ilTestEvaluationGUI'));
321 $toolbar =
$DIC->toolbar();
323 if ($validator->isCertificateDownloadable(
$DIC->user()->getId(), $this->getTestObj()->getId())) {
325 $button->setCaption(
'certificate');
326 $button->setUrl(
$DIC->ctrl()->getFormActionByClass(ilTestEvaluationGUI::class,
'outCertificate'));
327 $toolbar->addButtonInstance($button);
337 $message =
$DIC->language()->txt(
'tst_res_tab_msg_res_after_taking_test');
339 switch ($this->testObj->getScoreReporting()) {
342 if ($this->testObj->hasAnyTestResult($this->getTestSession())) {
343 $message =
$DIC->language()->txt(
'tst_res_tab_msg_res_after_finish_test');
349 $reporting_date = $this->testObj->getScoreSettings()->getResultSummarySettings()->getReportingDate();
351 $reporting_date->format(
'YmdHis'),
353 $reporting_date->getTimezone()->getName()
356 if (!$this->testObj->hasAnyTestResult($this->getTestSession())) {
358 $DIC->language()->txt(
'tst_res_tab_msg_res_after_date_no_res'),
365 $DIC->language()->txt(
'tst_res_tab_msg_res_after_date'),
371 $message =
$DIC->language()->txt(
'tst_res_tab_msg_res_after_test_passed');
375 $this->main_tpl->setOnScreenMessage(
'info',
$message);
const QUESTION_INSTANCE_TYPE_ORIGINALS
const QUESTION_INSTANCE_TYPE_DUPLICATES
Validates if an active certificate is stored in the database and can be downloaded by the user.
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@classDescription Date and time handling
static accessViolationRedirect()
const SCORE_REPORTING_FINISHED
const SCORE_REPORTING_AFTER_PASSED
const SCORE_REPORTING_DATE
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjTest $testObj, ilTestQuestionSetConfig $questionSetConfig)
ilTestParticipantsGUI constructor.
executeCommand()
Execute Command.
setQuestionSetConfig($questionSetConfig)
setTestAccess($testAccess)
ilGlobalTemplateInterface $main_tpl
setTestSession($testSession)
setObjectiveParent($objectiveParent)
showNoResultsReportingMessage()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SUBTAB_ID_LO_RESULTS
const SUBTAB_ID_MY_SOLUTIONS
const SUBTAB_ID_MY_RESULTS
const SUBTAB_ID_HIGHSCORE
const SUBTAB_ID_SKILL_RESULTS
const SUBTAB_ID_PARTICIPANTS_RESULTS