ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilAssQuestionPageGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once('./Services/COPage/classes/class.ilPageObjectGUI.php');
5require_once('./Modules/TestQuestionPool/classes/class.ilAssQuestionPage.php');
6
19{
20 const TEMP_PRESENTATION_TITLE_PLACEHOLDER = '___TEMP_PRESENTATION_TITLE_PLACEHOLDER___';
21
23
32 public function __construct($a_id = 0, $a_old_nr = 0)
33 {
34 parent::__construct('qpl', $a_id, $a_old_nr);
35 $this->setEnabledPageFocus(false);
36 }
37
39 {
41 }
42
44 {
45 $this->originalPresentationTitle = $originalPresentationTitle;
46 }
47
48 protected function isPageContainerToBeRendered()
49 {
50 return $this->getRenderPageContainer();
51 }
52
53 public function showPage()
54 {
56
57 $this->setPresentationTitle(self::TEMP_PRESENTATION_TITLE_PLACEHOLDER);
58
59 return parent::showPage();
60 }
61
62 function postOutputProcessing($output)
63 {
64 $output = str_replace(
65 self::TEMP_PRESENTATION_TITLE_PLACEHOLDER, $this->getOriginalPresentationTitle(), $output
66 );
67
68 $output = preg_replace("/src=\"\\.\\//ims", "src=\"" . ILIAS_HTTP_PATH . "/", $output);
69
70 return $output;
71 }
72}
73
Question page GUI class.
postOutputProcessing($output)
Finalizing output processing.
__construct($a_id=0, $a_old_nr=0)
Constructor.
setOriginalPresentationTitle($originalPresentationTitle)
showPage()
display content of page
Class ilPageObjectGUI.
setPresentationTitle($a_title="")
setEnabledPageFocus($a_enabledpagefocus)
Set Enable page focus.
getRenderPageContainer()
Get render page container.