24 include_once
"./Modules/Test/classes/inc.AssessmentConstants.php";
76 $this->ctrl->saveParameter($this,
"q_id");
78 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
79 $this->errormessage = $this->lng->txt(
"fill_out_all_required_fields");
88 $cmd = $this->ctrl->getCmd(
"editQuestion");
89 $next_class = $this->ctrl->getNextClass($this);
124 $est_working_time = $this->
object->getEstimatedWorkingTime();
125 $this->tpl->setVariable(
"TEXT_WORKING_TIME", $this->lng->txt(
"working_time"));
126 $this->tpl->setVariable(
"TIME_FORMAT", $this->lng->txt(
"time_format"));
127 $this->tpl->setVariable(
"VALUE_WORKING_TIME",
ilUtil::makeTimeSelect(
"Estimated",
false, $est_working_time[h], $est_working_time[m], $est_working_time[s]));
147 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.il_as_qpl_content.html",
"Modules/TestQuestionPool");
148 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
153 $total_of_answers = $this->
object->getTotalAnswers();
155 $color_class = array(
"tblrow1",
"tblrow2");
156 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.il_as_qpl_assessment_of_questions.html",
"Modules/TestQuestionPool");
157 if (!$total_of_answers)
159 $this->tpl->setCurrentBlock(
"emptyrow");
160 $this->tpl->setVariable(
"TXT_NO_ASSESSMENT", $this->lng->txt(
"qpl_assessment_no_assessment_of_questions"));
161 $this->tpl->setVariable(
"COLOR_CLASS", $color_class[$counter % 2]);
162 $this->tpl->parseCurrentBlock();
166 $this->tpl->setCurrentBlock(
"row");
167 $this->tpl->setVariable(
"TXT_RESULT", $this->lng->txt(
"qpl_assessment_total_of_answers"));
168 $this->tpl->setVariable(
"TXT_VALUE", $total_of_answers);
169 $this->tpl->setVariable(
"COLOR_CLASS", $color_class[$counter % 2]);
171 $this->tpl->parseCurrentBlock();
172 $this->tpl->setCurrentBlock(
"row");
173 $this->tpl->setVariable(
"TXT_RESULT", $this->lng->txt(
"qpl_assessment_total_of_right_answers"));
174 $this->tpl->setVariable(
"TXT_VALUE", sprintf(
"%2.2f", $this->object->_getTotalRightAnswers(
$_GET[
"q_id"]) * 100.0) .
" %");
175 $this->tpl->setVariable(
"COLOR_CLASS", $color_class[$counter % 2]);
176 $this->tpl->parseCurrentBlock();
179 $instances =& $this->
object->getInstances();
181 foreach ($instances as $instance)
183 if (is_array($instance[
"refs"]))
185 foreach ($instance[
"refs"] as
$ref_id)
187 $this->tpl->setCurrentBlock(
"references");
188 $this->tpl->setVariable(
"GOTO",
"./goto.php?target=tst_" . $ref_id);
189 $this->tpl->setVariable(
"TEXT_GOTO", $this->lng->txt(
"perma_link"));
190 $this->tpl->parseCurrentBlock();
193 $this->tpl->setCurrentBlock(
"instance_row");
194 $this->tpl->setVariable(
"TEST_TITLE", $instance[
"title"]);
195 $this->tpl->setVariable(
"TEST_AUTHOR", $instance[
"author"]);
196 $this->tpl->setVariable(
"QUESTION_ID", $instance[
"question_id"]);
197 $this->tpl->setVariable(
"COLOR_CLASS", $color_class[$counter % 2]);
199 $this->tpl->parseCurrentBlock();
201 $this->tpl->setCurrentBlock(
"instances");
202 $this->tpl->setVariable(
"TEXT_TEST_TITLE", $this->lng->txt(
"title"));
203 $this->tpl->setVariable(
"TEXT_TEST_AUTHOR", $this->lng->txt(
"author"));
204 $this->tpl->setVariable(
"TEXT_TEST_LOCATION", $this->lng->txt(
"location"));
205 $this->tpl->setVariable(
"INSTANCES_TITLE", $this->lng->txt(
"question_instances_title"));
206 $this->tpl->parseCurrentBlock();
208 $this->tpl->setCurrentBlock(
"adm_content");
209 $this->tpl->setVariable(
"TXT_QUESTION_TITLE", $this->lng->txt(
"question_cumulated_statistics"));
210 $this->tpl->setVariable(
"TXT_RESULT", $this->lng->txt(
"result"));
211 $this->tpl->setVariable(
"TXT_VALUE", $this->lng->txt(
"value"));
212 $this->tpl->parseCurrentBlock();
226 $this->
object->setEstimatedWorkingTime(
249 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
250 if ((!$question_type) and ($question_id > 0))
254 if (strlen($question_type) == 0)
return NULL;
255 $question_type_gui = $question_type .
"GUI";
257 $question =&
new $question_type_gui();
258 if ($question_id > 0)
260 $question->object->loadFromDb($question_id);
267 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
268 include_once
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php";
276 return $q_type .
"GUI";
291 include_once
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php";
300 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.il_as_qpl_content.html",
"Modules/TestQuestionPool");
301 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
302 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.il_as_question.html",
"Modules/TestQuestionPool");
315 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
316 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
320 $page_gui->setEnabledInternalLinks(
false);
321 $page_gui->setQuestionHTML($html);
322 $page_gui->setFileDownloadLink(
"ilias.php?baseClass=ilObjTestGUI&cmd=downloadFile".
323 "&ref_id=".
$_GET[
"ref_id"]);
324 $page_gui->setFullscreenLink(
"ilias.php?baseClass=ilObjTestGUI&cmd=fullscreen".
325 "&ref_id=".
$_GET[
"ref_id"]);
326 $page_gui->setSourcecodeDownloadScript(
"ilias.php?baseClass=ilObjTestGUI&ref_id=".
$_GET[
"ref_id"]);
327 $page_gui->setEnabledPageFocus(
false);
328 $page_gui->setOutputMode(
"presentation");
329 $page_gui->setPresentationTitle(
"");
330 $presentation = $page_gui->presentation();
332 $presentation = preg_replace(
"/src=\".\\//ims",
"src=\"" . ILIAS_HTTP_PATH .
"/", $presentation);
333 return $presentation;
339 function outQuestionPage($a_temp_var, $a_postponed =
false, $active_id =
"", $html =
"")
344 $postponed =
" (" . $this->lng->txt(
"postponed") .
")";
347 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
348 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
349 $this->lng->loadLanguageModule(
"content");
353 $page_gui->setFileDownloadLink(
"ilias.php?baseClass=ilObjTestGUI&cmd=downloadFile".
354 "&ref_id=".
$_GET[
"ref_id"]);
355 $page_gui->setFullscreenLink(
"ilias.php?baseClass=ilObjTestGUI&cmd=fullscreen".
356 "&ref_id=".
$_GET[
"ref_id"]);
357 $page_gui->setEnabledPageFocus(
false);
360 $page_gui->setQuestionHTML($html);
362 $page_gui->setSourcecodeDownloadScript(
"ilias.php?baseClass=ilObjTestGUI&ref_id=".
$_GET[
"ref_id"]);
363 $page_gui->setOutputMode(
"presentation");
365 include_once
"./Modules/Test/classes/class.ilObjTest.php";
367 switch ($title_output)
370 $page_gui->setPresentationTitle(sprintf($this->lng->txt(
"tst_position"), $this->
getSequenceNumber(), $this->
getQuestionCount()).
" - ".$this->object->getTitle().$postponed);
377 $maxpoints = $this->
object->getMaximumPoints();
380 $maxpoints =
" (".$maxpoints.
" ".$this->lng->txt(
"point").
")";
384 $maxpoints =
" (".$maxpoints.
" ".$this->lng->txt(
"points").
")";
386 $page_gui->setPresentationTitle(sprintf($this->lng->txt(
"tst_position"), $this->
getSequenceNumber(), $this->
getQuestionCount()).
" - ".$this->object->getTitle().$postponed.$maxpoints);
389 $presentation = $page_gui->presentation();
390 if (strlen($maxpoints)) $presentation = str_replace($maxpoints,
"<em>$maxpoints</em>", $presentation);
392 $presentation = preg_replace(
"/src=\".\\//ims",
"src=\"" . ILIAS_HTTP_PATH .
"/", $presentation);
393 return $presentation;
401 if (
$_GET[
"calling_test"])
406 elseif (
$_GET[
"test_ref_id"])
413 if (
$_GET[
"q_id"] > 0)
415 $this->ctrl->setParameterByClass(
"ilpageobjectgui",
"q_id",
$_GET[
"q_id"]);
416 $this->ctrl->redirectByClass(
"ilpageobjectgui",
"edit");
420 $this->ctrl->redirectByClass(
"ilobjquestionpoolgui",
"questions");
427 if (strlen($return_to))
429 $this->ctrl->setParameter($this,
"return_to", $return_to);
431 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.il_as_qpl_sync_original.html",
"Modules/TestQuestionPool");
432 $this->tpl->setCurrentBlock(
"adm_content");
433 $this->tpl->setVariable(
"BUTTON_YES", $this->lng->txt(
"yes"));
434 $this->tpl->setVariable(
"BUTTON_NO", $this->lng->txt(
"no"));
435 $this->tpl->setVariable(
"FORM_ACTION", $this->ctrl->getFormAction($this));
436 $this->tpl->setVariable(
"TEXT_SYNC", $this->lng->txt(
"confirm_sync_questions"));
437 $this->tpl->parseCurrentBlock();
442 $original_id = $this->
object->original_id;
445 $this->
object->syncWithOriginal();
447 if (strlen(
$_GET[
"return_to"]))
449 $this->ctrl->redirect($this,
$_GET[
"return_to"]);
460 if (strlen(
$_GET[
"return_to"]))
462 $this->ctrl->redirect($this,
$_GET[
"return_to"]);
482 $originalexists = $this->
object->_questionExists($this->object->original_id);
483 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
504 $ilUser->setPref(
"tst_lastquestiontype", $this->object->getQuestionType());
505 $ilUser->writePref(
"tst_lastquestiontype", $this->object->getQuestionType());
506 $this->
object->saveToDb();
507 $originalexists = $this->
object->_questionExists($this->object->original_id);
508 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
513 elseif (
$_GET[
"calling_test"])
519 elseif (
$_GET[
"test_ref_id"])
521 include_once (
"./Modules/Test/classes/class.ilObjTest.php");
524 $test->insertQuestion($this->object->getId());
529 $this->ctrl->setParameter($this,
"q_id", $this->object->getId());
530 $this->editQuestion();
539 $this->ctrl->setParameterByClass(
"ilpageobjectgui",
"q_id", $this->object->getId());
540 $this->ctrl->redirectByClass(
"ilpageobjectgui",
"edit");
546 $this->editQuestion();
556 $old_id =
$_GET[
"q_id"];
560 $ilUser->setPref(
"tst_lastquestiontype", $this->object->getQuestionType());
561 $ilUser->writePref(
"tst_lastquestiontype", $this->object->getQuestionType());
562 $this->
object->saveToDb();
563 $originalexists = $this->
object->_questionExists($this->object->original_id);
564 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
569 elseif (
$_GET[
"calling_test"])
575 elseif (
$_GET[
"test_ref_id"])
577 include_once (
"./Modules/Test/classes/class.ilObjTest.php");
580 $test->insertQuestion($this->object->getId());
585 if ($this->object->getId() != $old_id)
588 $this->ctrl->setParameterByClass(
$_GET[
"cmdClass"],
"q_id", $this->object->getId());
589 $this->ctrl->setParameterByClass(
$_GET[
"cmdClass"],
"sel_question_types",
$_GET[
"sel_question_types"]);
591 $this->ctrl->redirectByClass(
$_GET[
"cmdClass"],
"editQuestion");
601 $this->editQuestion();
609 $this->editQuestion();
619 $this->
object->saveToDb();
620 $this->ctrl->setParameter($this,
"q_id", $this->object->getId());
621 $this->editQuestion();
628 $this->ctrl->redirect($this,
"editQuestion");
643 include_once(
"./Modules/TestQuestionPool/classes/class.ilSolutionExplorer.php");
644 if (strlen($_POST[
"internalLinkType"]))
646 switch ($_POST[
"internalLinkType"])
682 $type =
$_GET[
"link_new_type"];
683 $search =
$_GET[
"search_link_type"];
685 $this->ctrl->setParameter($this,
"link_new_type", $type);
686 $this->ctrl->setParameter($this,
"search_link_type", $search);
687 $this->ctrl->saveParameter($this, array(
"subquestion_index",
"link_new_type",
"search_link_type"));
691 $exp =
new ilSolutionExplorer($this->ctrl->getLinkTarget($this,
'addSuggestedSolution'), get_class($this));
694 $exp->setExpandTarget($this->ctrl->getLinkTarget($this,
'addSuggestedSolution'));
695 $exp->setTargetGet(
"ref_id");
696 $exp->setRefId($this->cur_ref_id);
699 $exp->addFilter($type);
700 $exp->setSelectableType($type);
705 $this->tpl->addBlockFile(
"EXPLORER",
"explorer",
"tpl.il_as_qpl_explorer.html",
"Modules/TestQuestionPool");
706 $this->tpl->setVariable(
"EXPLORER_TREE",$exp->getOutput());
707 $this->tpl->setVariable(
"BUTTON_CANCEL",$this->lng->txt(
"cancel"));
708 $this->tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
713 $this->
object->suggested_solutions = array();
714 $this->
object->saveToDb();
715 $this->editQuestion();
720 $subquestion_index = 0;
721 if (strlen(
$_GET[
"subquestion_index"]) &&
$_GET[
"subquestion_index"] >= 0)
723 $subquestion_index =
$_GET[
"subquestion_index"];
725 $this->
object->saveSuggestedSolution(
"il__pg_" .
$_GET[
"pg"], $subquestion_index);
729 ilUtil::sendInfo($this->lng->txt(
"suggested_solution_added_successfully"), TRUE);
730 $this->ctrl->redirect($this,
"editQuestion");
736 $subquestion_index = 0;
737 if (strlen(
$_GET[
"subquestion_index"]) &&
$_GET[
"subquestion_index"] >= 0)
739 $subquestion_index =
$_GET[
"subquestion_index"];
741 $this->
object->saveSuggestedSolution(
"il__st_" .
$_GET[
"st"], $subquestion_index);
745 ilUtil::sendInfo($this->lng->txt(
"suggested_solution_added_successfully"), TRUE);
746 $this->ctrl->redirect($this,
"editQuestion");
752 $subquestion_index = 0;
753 if (strlen(
$_GET[
"subquestion_index"]) &&
$_GET[
"subquestion_index"] >= 0)
755 $subquestion_index =
$_GET[
"subquestion_index"];
757 $this->
object->saveSuggestedSolution(
"il__git_" .
$_GET[
"git"], $subquestion_index);
761 ilUtil::sendInfo($this->lng->txt(
"suggested_solution_added_successfully"), TRUE);
762 $this->ctrl->redirect($this,
"editQuestion");
776 $tmpPath = $cont_obj->getLMTree()->getPathFull($a_endnode_id, $a_startnode_id);
779 for ($i = 1; $i < (count($tmpPath) - 1); $i++)
786 $path .= $tmpPath[$i][
"title"];
794 $this->ctrl->saveParameter($this, array(
"subquestion_index",
"link_new_type",
"search_link_type"));
795 switch (
$_GET[
"search_link_type"])
798 include_once
"./Modules/LearningModule/classes/class.ilLMPageObject.php";
799 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
801 $cont_obj = $cont_obj_gui->object;
803 $shownpages = array();
804 $tree = $cont_obj->getLMTree();
805 $chapters = $tree->getSubtree($tree->getNodeData($tree->getRootId()));
806 $this->ctrl->setParameter($this,
"q_id", $this->object->getId());
807 $this->tpl->setVariable(
"HEADER", $this->object->getTitle());
809 $color_class = array(
"tblrow1",
"tblrow2");
811 $this->tpl->addBlockFile(
"LINK_SELECTION",
"link_selection",
"tpl.il_as_qpl_internallink_selection.html",
"Modules/TestQuestionPool");
812 foreach ($chapters as $chapter)
814 $chapterpages = $tree->getChildsByType($chapter[
"obj_id"],
"pg");
815 foreach ($chapterpages as $page)
817 if($page[
"type"] ==
$_GET[
"search_link_type"])
819 array_push($shownpages, $page[
"obj_id"]);
820 $this->tpl->setCurrentBlock(
"linktable_row");
821 $this->tpl->setVariable(
"TEXT_LINK", $page[
"title"]);
822 $this->tpl->setVariable(
"TEXT_ADD", $this->lng->txt(
"add"));
823 $this->tpl->setVariable(
"LINK_HREF", $this->ctrl->getLinkTargetByClass(get_class($this),
"add" . strtoupper($page[
"type"])) .
"&" . $page[
"type"] .
"=" . $page[
"obj_id"]);
824 $this->tpl->setVariable(
"COLOR_CLASS", $color_class[$counter % 2]);
825 if ($tree->isInTree($page[
"obj_id"]))
834 $this->tpl->parseCurrentBlock();
839 foreach ($pages as $page)
841 if (!in_array($page[
"obj_id"], $shownpages))
843 $this->tpl->setCurrentBlock(
"linktable_row");
844 $this->tpl->setVariable(
"TEXT_LINK", $page[
"title"]);
845 $this->tpl->setVariable(
"TEXT_ADD", $this->lng->txt(
"add"));
846 $this->tpl->setVariable(
"LINK_HREF", $this->ctrl->getLinkTargetByClass(get_class($this),
"add" . strtoupper($page[
"type"])) .
"&" . $page[
"type"] .
"=" . $page[
"obj_id"]);
847 $this->tpl->setVariable(
"COLOR_CLASS", $color_class[$counter % 2]);
850 $this->tpl->parseCurrentBlock();
854 $this->tpl->setCurrentBlock(
"link_selection");
855 $this->tpl->setVariable(
"BUTTON_CANCEL",$this->lng->txt(
"cancel"));
856 $this->tpl->setVariable(
"TEXT_LINK_TYPE", $this->lng->txt(
"obj_" .
$_GET[
"search_link_type"]));
857 $this->tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
858 $this->tpl->parseCurrentBlock();
861 $this->ctrl->setParameter($this,
"q_id", $this->object->getId());
862 $this->tpl->setVariable(
"HEADER", $this->object->getTitle());
864 $color_class = array(
"tblrow1",
"tblrow2");
866 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
868 $cont_obj = $cont_obj_gui->object;
870 $ctree =& $cont_obj->getLMTree();
871 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
872 $this->tpl->addBlockFile(
"LINK_SELECTION",
"link_selection",
"tpl.il_as_qpl_internallink_selection.html",
"Modules/TestQuestionPool");
873 foreach($nodes as $node)
875 if($node[
"type"] ==
$_GET[
"search_link_type"])
877 $this->tpl->setCurrentBlock(
"linktable_row");
878 $this->tpl->setVariable(
"TEXT_LINK", $node[
"title"]);
879 $this->tpl->setVariable(
"TEXT_ADD", $this->lng->txt(
"add"));
880 $this->tpl->setVariable(
"LINK_HREF", $this->ctrl->getLinkTargetByClass(get_class($this),
"add" . strtoupper($node[
"type"])) .
"&" . $node[
"type"] .
"=" . $node[
"obj_id"]);
881 $this->tpl->setVariable(
"COLOR_CLASS", $color_class[$counter % 2]);
882 $this->tpl->parseCurrentBlock();
886 $this->tpl->setCurrentBlock(
"link_selection");
887 $this->tpl->setVariable(
"BUTTON_CANCEL",$this->lng->txt(
"cancel"));
888 $this->tpl->setVariable(
"TEXT_LINK_TYPE", $this->lng->txt(
"obj_" .
$_GET[
"search_link_type"]));
889 $this->tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
890 $this->tpl->parseCurrentBlock();
893 $this->ctrl->setParameter($this,
"q_id", $this->object->getId());
894 $this->tpl->setVariable(
"HEADER", $this->object->getTitle());
896 $color_class = array(
"tblrow1",
"tblrow2");
898 $this->tpl->addBlockFile(
"LINK_SELECTION",
"link_selection",
"tpl.il_as_qpl_internallink_selection.html",
"Modules/TestQuestionPool");
899 include_once
"./Modules/Glossary/classes/class.ilObjGlossary.php";
902 $terms = $glossary->getTermList();
903 foreach($terms as $term)
905 $this->tpl->setCurrentBlock(
"linktable_row");
906 $this->tpl->setVariable(
"TEXT_LINK", $term[
"term"]);
907 $this->tpl->setVariable(
"TEXT_ADD", $this->lng->txt(
"add"));
908 $this->tpl->setVariable(
"LINK_HREF", $this->ctrl->getLinkTargetByClass(get_class($this),
"addGIT") .
"&git=" . $term[
"id"]);
909 $this->tpl->setVariable(
"COLOR_CLASS", $color_class[$counter % 2]);
910 $this->tpl->parseCurrentBlock();
913 $this->tpl->setCurrentBlock(
"link_selection");
914 $this->tpl->setVariable(
"BUTTON_CANCEL",$this->lng->txt(
"cancel"));
915 $this->tpl->setVariable(
"TEXT_LINK_TYPE", $this->lng->txt(
"glossary_term"));
916 $this->tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
917 $this->tpl->parseCurrentBlock();
920 $subquestion_index = 0;
921 if (strlen(
$_GET[
"subquestion_index"]) &&
$_GET[
"subquestion_index"] >= 0)
923 $subquestion_index =
$_GET[
"subquestion_index"];
925 $this->
object->saveSuggestedSolution(
"il__lm_" .
$_GET[
"source_id"], $subquestion_index);
929 ilUtil::sendInfo($this->lng->txt(
"suggested_solution_added_successfully"), TRUE);
930 $this->ctrl->redirect($this,
"editQuestion");
938 $this->sequence_no = $nr;
948 $this->question_count = $a_question_count;
968 $this->errormessage .= ((strlen($this->errormessage)) ?
"<br />" :
"") .
$errormessage;
985 return $this->
object->getQuestionType();
998 if (strlen($a_value))
1000 $result =
" value=\"$a_value\" ";
1018 include_once
"./Modules/Test/classes/class.ilObjTest.php";
1020 if (strlen($manual_feedback))
1022 return $manual_feedback;
1024 $correct_feedback = $this->
object->getFeedbackGeneric(1);
1025 $incorrect_feedback = $this->
object->getFeedbackGeneric(0);
1026 if (strlen($correct_feedback.$incorrect_feedback))
1028 $reached_points = $this->
object->calculateReachedPoints($active_id,
$pass);
1029 $max_points = $this->
object->getMaximumPoints();
1030 if ($reached_points == $max_points)
1032 $output = $correct_feedback;
1036 $output = $incorrect_feedback;
1039 return $this->
object->prepareTextareaOutput($output, TRUE);
1056 include_once
"./classes/class.ilTemplate.php";
1057 $template =
new ilTemplate(
"tpl.il_as_qpl_questiontype.html", TRUE, TRUE,
"Modules/TestQuestionPool");
1058 $count = $this->
object->isInUse();
1062 if ($rbacsystem->checkAccess(
"write",
$_GET[
"ref_id"]))
1064 $template->setCurrentBlock(
"infosign");
1066 $template->setVariable(
"INFO_IMG_ALT", sprintf($this->lng->txt(
"qpl_question_is_in_use"), $count));
1067 $template->setVariable(
"INFO_IMG_TITLE", sprintf($this->lng->txt(
"qpl_question_is_in_use"), $count));
1068 $template->parseCurrentBlock();
1072 return $template->get();