65 $this->ctrl->saveParameter($this,
'nextCommand');
66 $nextCommand = explode(
'::',
$_GET[
'nextCommand']);
70 $this->ctrl->saveParameter($this->parentGUI,
'lock');
72 switch($this->ctrl->getNextClass())
76 $cmd = $this->ctrl->getCmd().
'Cmd';
83 if( !$this->passwordChecker->wrongUserEnteredPasswordExist() )
88 return $this->tpl->getMessageHTML(
89 $this->lng->txt(
'tst_password_entered_wrong_password'),
'failure' 99 $form->setTitle($this->lng->txt(
"tst_password_form"));
100 $form->setDescription($this->lng->txt(
"tst_password_introduction"));
102 $form->setFormAction($this->ctrl->getFormAction($this));
103 $form->addCommandButton(self::CMD_SAVE_ENTERED_PASSWORD, $this->lng->txt(
"submit"));
104 $form->addCommandButton(self::CMD_BACK_TO_INFO_SCREEN, $this->lng->txt(
"cancel"));
108 $inp->setRetype(
false);
109 $form->addItem($inp);
115 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
116 require_once
'Services/Form/classes/class.ilPasswordInputGUI.php';
121 $this->tpl->setVariable(
122 $this->parentGUI->getContentBlockName(), $msg.$this->ctrl->getHTML($form)
128 $this->passwordChecker->setUserEnteredPassword(
$_POST[
"password"]);
130 if( !$this->passwordChecker->isUserEnteredPasswordCorrect() )
132 $this->passwordChecker->logWrongEnteredPassword();
140 $this->ctrl->redirectByClass(
'ilObjTestGUI',
'infoScreen');
This class provides processing control methods.
setNextCommandCmd($nextCommandCmd)
__construct(ilCtrl $ctrl, ilTemplate $tpl, ilLanguage $lng, ilTestPlayerAbstractGUI $parentGUI, ilTestPasswordChecker $passwordChecker)
const CMD_SHOW_PASSWORD_FORM
const CMD_BACK_TO_INFO_SCREEN
setNextCommandClass($nextCommandClass)
special template class to simplify handling of ITX/PEAR
const CMD_SAVE_ENTERED_PASSWORD
Output class for assessment test execution.