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'],
273 $questionList =
new ilAssQuestionList($DIC->database(), $DIC->language(), $DIC[
'refinery'], $DIC[
'component.repository']);
274 $questionList->
setParentObjId($dynamicQuestionSetConfig->getSourceQuestionPoolId());
277 $questionList =
new ilAssQuestionList($DIC->database(), $DIC->language(), $DIC[
'refinery'], $DIC[
'component.repository']);
281 $questionList->load();
289 $DIC->ui()->mainTemplate(),
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);
setTestAccess($testAccess)
executeCommand()
Execute Command.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setObjectiveParent($objectiveParent)
ilGlobalTemplateInterface $main_tpl
loadFromDb()
loads the question set config for current test from the database
const SCORE_REPORTING_AFTER_PASSED
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
setTestSession($testSession)
const QUESTION_INSTANCE_TYPE_DUPLICATES
static accessViolationRedirect()
__construct(ilObjTest $testObj, ilTestQuestionSetConfig $questionSetConfig)
ilTestParticipantsGUI constructor.
const SUBTAB_ID_PARTICIPANTS_RESULTS
setQuestionList($questionList)
setParentObjId($parentObjId)
Validates if an active certificate is stored in the database and can be downloaded by the user...
const SUBTAB_ID_MY_RESULTS
showNoResultsReportingMessage()
const SUBTAB_ID_HIGHSCORE
const SCORE_REPORTING_FINISHED
const SCORE_REPORTING_DATE
const SUBTAB_ID_SKILL_RESULTS
const SUBTAB_ID_MY_SOLUTIONS
const SUBTAB_ID_LO_RESULTS
setQuestionSetConfig($questionSetConfig)
const QUESTION_INSTANCE_TYPE_ORIGINALS