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 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
84 require_once
'Services/Form/classes/class.ilPasswordInputGUI.php';
87 $form->setTitle($this->lng->txt(
"tst_password_form"));
88 $form->setDescription($this->lng->txt(
"tst_password_introduction"));
90 $form->setFormAction($this->ctrl->getFormAction($this));
91 $form->addCommandButton(self::CMD_SAVE_ENTERED_PASSWORD, $this->lng->txt(
"submit"));
92 $form->addCommandButton(self::CMD_BACK_TO_INFO_SCREEN, $this->lng->txt(
"cancel"));
96 $inp->setRetype(
false);
99 $this->tpl->setVariable($this->parentGUI->getContentBlockName(), $this->ctrl->getHTML($form));
104 $this->passwordChecker->setUserEnteredPassword(
$_POST[
"password"]);
106 if( !$this->passwordChecker->isUserEnteredPasswordCorrect() )
116 $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
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
const CMD_SAVE_ENTERED_PASSWORD
Output class for assessment test execution.