19 declare(strict_types=1);
    54         $this->
ctrl->saveParameter($this, 
'nextCommand');
    55         $next_cmd = explode(
'::', $this->testrequest->getNextCommand());
    59         $this->
ctrl->saveParameter($this->parent_gui, 
'lock');
    61         switch ($this->
ctrl->getNextClass()) {
    64                 $cmd = $this->
ctrl->getCmd() . 
'Cmd';
    71         if (!$this->password_checker->wrongUserEnteredPasswordExist()) {
    76             $this->
lng->txt(
'tst_password_entered_wrong_password'),
    84         $form->setTitle($this->
lng->txt(
"tst_password_form"));
    85         $form->setDescription($this->
lng->txt(
"tst_password_introduction"));
    87         $form->setFormAction($this->
ctrl->getFormAction($this));
    88         $form->addCommandButton(self::CMD_SAVE_ENTERED_PASSWORD, $this->
lng->txt(
"submit"));
    89         $form->addCommandButton(self::CMD_BACK_TO_INFO_SCREEN, $this->
lng->txt(
"cancel"));
    93         $inp->setRetype(
false);
   100         $this->global_screen->tool()->context()->current()->getAdditionalData()->replace(
   102             $this->parent_gui->getObject()->getTitle() . 
' - ' . $this->
lng->txt(
'tst_password_form')
   105         $this->tpl->setVariable(
   106             $this->parent_gui->getContentBlockName(),
   113         $this->password_checker->setUserEnteredPassword($this->testrequest->strVal(
'password'));
   115         if (!$this->password_checker->isUserEnteredPasswordCorrect()) {
   116             $this->password_checker->logWrongEnteredPassword();
   124         $this->
ctrl->redirectByClass([ilRepositoryGUI::class, ilObjTestGUI::class, ilInfoScreenGUI::class]);
 
static getSystemMessageHTML(string $a_txt, string $a_type="info")
Get HTML for a system message. 
 
const CMD_SHOW_PASSWORD_FORM
 
const CMD_BACK_TO_INFO_SCREEN
 
__construct(private ilCtrlInterface $ctrl, private ilGlobalTemplateInterface $tpl, private ilLanguage $lng, private ilTestPlayerAbstractGUI $parent_gui, private ilTestPasswordChecker $password_checker, private RequestDataCollector $testrequest, private GlobalScreen $global_screen)
 
setNextCommandCmd(string $next_command_cmd)
 
const TEST_PLAYER_VIEW_TITLE
 
const CMD_SAVE_ENTERED_PASSWORD
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setNextCommandClass(string $next_command_class)
 
string $next_command_class