65 $this->ctrl->saveParameter($this,
'nextCommand');
66 $nextCommand = explode(
'::',
$_GET[
'nextCommand']);
70 $this->ctrl->saveParameter($this->parentGUI,
'lock');
72 switch ($this->ctrl->getNextClass()) {
75 $cmd = $this->ctrl->getCmd() .
'Cmd';
82 if (!$this->passwordChecker->wrongUserEnteredPasswordExist()) {
86 return $this->tpl->getMessageHTML(
87 $this->lng->txt(
'tst_password_entered_wrong_password'),
98 $form->setTitle($this->lng->txt(
"tst_password_form"));
99 $form->setDescription($this->lng->txt(
"tst_password_introduction"));
101 $form->setFormAction($this->ctrl->getFormAction($this));
102 $form->addCommandButton(self::CMD_SAVE_ENTERED_PASSWORD, $this->lng->txt(
"submit"));
103 $form->addCommandButton(self::CMD_BACK_TO_INFO_SCREEN, $this->lng->txt(
"cancel"));
107 $inp->setRetype(
false);
108 $form->addItem($inp);
114 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
115 require_once
'Services/Form/classes/class.ilPasswordInputGUI.php';
120 $this->tpl->setVariable(
121 $this->parentGUI->getContentBlockName(),
122 $msg . $this->ctrl->getHTML(
$form)
128 $this->passwordChecker->setUserEnteredPassword(
$_POST[
"password"]);
130 if (!$this->passwordChecker->isUserEnteredPasswordCorrect()) {
131 $this->passwordChecker->logWrongEnteredPassword();
139 $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)
if(isset($_POST['submit'])) $form
special template class to simplify handling of ITX/PEAR
const CMD_SAVE_ENTERED_PASSWORD
Output class for assessment test execution.