private function showConfirmation(ilPropertyFormGUI $form, $oldQuestionSetType, $newQuestionSetType, $hasQuestionsWithoutQuestionpool) { require_once 'Modules/Test/classes/confirmations/class.ilTestSettingsChangeConfirmationGUI.php'; $confirmation = new ilTestSettingsChangeConfirmationGUI($this->lng, $this->testOBJ); $confirmation->setFormAction($this->ctrl->getFormAction($this)); $confirmation->setCancel($this->lng->txt('cancel'), self::CMD_SHOW_FORM); $confirmation->setConfirm($this->lng->txt('confirm'), self::CMD_CONFIRMED_SAVE_FORM); $confirmation->setOldQuestionSetType($oldQuestionSetType); $confirmation->setNewQuestionSetType($newQuestionSetType); $confirmation->setQuestionLossInfoEnabled($hasQuestionsWithoutQuestionpool); $confirmation->build(); $confirmation->populateParametersFromPropertyForm($form, $this->activeUser->getTimeZone()); $this->tpl->setContent($this->ctrl->getHTML($confirmation)); }