4require_once(
'./Services/COPage/classes/class.ilPageObjectGUI.php');
5require_once(
'./Modules/TestQuestionPool/classes/class.ilAssQuestionPage.php');
41 if (strtolower(
$_GET[
'cmdClass']) ===
'ilassquestionpreviewgui') {
42 $this->
setFileDownloadLink($this->ctrl->getLinkTargetByClass(ilObjQuestionPoolGUI::class,
'downloadFile'));
44 $this->
setFileDownloadLink($this->ctrl->getLinkTargetByClass(ilObjTestGUI::class,
'downloadFile'));
75 return parent::showPage();
85 $output = str_replace(
86 self::TEMP_PRESENTATION_TITLE_PLACEHOLDER,
91 $output = preg_replace(
"/src=\"\\.\\//ims",
"src=\"" . ILIAS_HTTP_PATH .
"/", $output);
104 $this->questionInfoHTML = $a_html;
113 $this->questionActionsHTML = $a_html;
126 if (!empty($this->questionInfoHTML) || !empty($this->questionActionsHTML)) {
127 $tpl =
new ilTemplate(
'tpl.tst_question_subtitle_blocks.html',
true,
true,
'Modules/TestQuestionPool');
128 $tpl->setVariable(
'QUESTION_INFO', $this->questionInfoHTML);
129 $tpl->setVariable(
'QUESTION_ACTIONS', $this->questionActionsHTML);
130 $a_output = str_replace(
"{{{{{PageTOC}}}}}",
$tpl->get(), $a_output);
132 $a_output = str_replace(
"{{{{{PageTOC}}}}}",
'', $a_output);
An exception for terminatinating execution or to throw for unit testing.
postOutputProcessing($output)
Finalizing output processing.
$originalPresentationTitle
setQuestionInfoHTML($a_html)
Set the HTML of a question info block below the title (number, status, ...)
__construct($a_id=0, $a_old_nr=0)
Constructor.
insertPageToc($a_output)
Replace page toc placeholder with question info and actions.
setQuestionActionsHTML($a_html)
Set the HTML of a question actions block below the title.
const TEMP_PRESENTATION_TITLE_PLACEHOLDER
getOriginalPresentationTitle()
setOriginalPresentationTitle($originalPresentationTitle)
isPageContainerToBeRendered()
showPage()
display content of page
setPresentationTitle($a_title="")
setPageConfig($a_val)
Set page config object.
getPageConfig()
Get page config object.
setFileDownloadLink($a_download_link)
Set file download link.
setEnabledPageFocus($a_enabledpagefocus)
Set Enable page focus.
getRenderPageContainer()
Get render page container.
special template class to simplify handling of ITX/PEAR
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc