170 switch ($DIC->ctrl()->getNextClass()) {
171 case 'ilparticipantstestresultsgui':
179 require_once
'Modules/Test/classes/class.ilParticipantsTestResultsGUI.php';
185 $DIC->ctrl()->forwardCommand($gui);
188 case 'ilmytestresultsgui':
190 if (!$this->
getTestTabs()->needsMyResultsSubTab()) {
196 require_once
'Modules/Test/classes/class.ilMyTestResultsGUI.php';
202 $DIC->ctrl()->forwardCommand($gui);
205 case 'iltestevalobjectiveorientedgui':
207 if (!$this->
getTestTabs()->needsLoResultsSubTab()) {
213 require_once
'Modules/Test/classes/class.ilTestEvalObjectiveOrientedGUI.php';
216 $DIC->ctrl()->forwardCommand($gui);
219 case 'ilmytestsolutionsgui':
221 if (!$this->
getTestTabs()->needsMySolutionsSubTab()) {
227 require_once
'Modules/Test/classes/class.ilMyTestSolutionsGUI.php';
232 $DIC->ctrl()->forwardCommand($gui);
235 case 'iltesttoplistgui':
237 if (!$this->
getTestTabs()->needsHighSoreSubTab()) {
243 require_once
'./Modules/Test/classes/class.ilTestToplistGUI.php';
245 $DIC->ctrl()->forwardCommand($gui);
248 case 'iltestskillevaluationgui':
253 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
255 require_once
'Modules/Test/classes/class.ilObjTestDynamicQuestionSetConfig.php';
257 $DIC->repositoryTree(),
259 $DIC[
'ilPluginAdmin'],
263 $questionList =
new ilAssQuestionList($DIC->database(), $DIC->language(), $DIC[
'ilPluginAdmin']);
264 $questionList->
setParentObjId($dynamicQuestionSetConfig->getSourceQuestionPoolId());
267 $questionList =
new ilAssQuestionList($DIC->database(), $DIC->language(), $DIC[
'ilPluginAdmin']);
271 $questionList->load();
273 require_once
'Modules/Test/classes/class.ilTestSessionFactory.php';
277 require_once
'Modules/Test/classes/class.ilTestSkillEvaluationGUI.php';
281 $DIC->ui()->mainTemplate(),
290 $DIC->ctrl()->forwardCommand($gui);
293 case strtolower(__CLASS__):
296 $command = $DIC->ctrl()->getCmd(self::DEFAULT_CMD) .
'Cmd';
305 if ($this->testObj->canShowTestResults($this->getTestSession())) {
306 if ($this->objectiveParent->isObjectiveOrientedPresentationRequired()) {
307 $DIC->ctrl()->redirectByClass(
'ilTestEvalObjectiveOrientedGUI');
310 $DIC->ctrl()->redirectByClass(array(
'ilMyTestResultsGUI',
'ilTestEvaluationGUI'));
313 $toolbar = $DIC->toolbar();
315 if ($validator->isCertificateDownloadable($DIC->user()->getId(), $this->
getTestObj()->getId())) {
317 $button->setCaption(
'certificate');
318 $button->setUrl($DIC->ctrl()->getFormActionByClass(ilTestEvaluationGUI::class,
'outCertificate'));
319 $toolbar->addButtonInstance($button);
329 $message = $DIC->language()->txt(
'tst_res_tab_msg_res_after_taking_test');
331 switch ($this->testObj->getScoreReporting()) {
334 if ($this->testObj->hasAnyTestResult($this->getTestSession())) {
335 $message = $DIC->language()->txt(
'tst_res_tab_msg_res_after_finish_test');
344 if (!$this->testObj->hasAnyTestResult($this->getTestSession())) {
346 $DIC->language()->txt(
'tst_res_tab_msg_res_after_date_no_res'),
353 $DIC->language()->txt(
'tst_res_tab_msg_res_after_date'),
359 $message = $DIC->language()->txt(
'tst_res_tab_msg_res_after_test_passed');
setTestAccess($testAccess)
executeCommand()
Execute Command.
setObjectiveParent($objectiveParent)
loadFromDb()
loads the question set config for current test from the database
const SCORE_REPORTING_AFTER_PASSED
setTestSession($testSession)
const QUESTION_INSTANCE_TYPE_DUPLICATES
static accessViolationRedirect()
__construct(ilObjTest $testObj, ilTestQuestionSetConfig $questionSetConfig)
ilTestParticipantsGUI constructor.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
const SUBTAB_ID_PARTICIPANTS_RESULTS
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
setQuestionList($questionList)
catch(Exception $e) $message
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