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 
4 require_once('./Services/COPage/classes/class.ilPageObjectGUI.php');
5 require_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 
38  public function getOriginalPresentationTitle()
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 
Class ilPageObjectGUI.
Question page GUI class.
setEnabledPageFocus($a_enabledpagefocus)
Set Enable page focus.
setPresentationTitle($a_title="")
__construct($a_id=0, $a_old_nr=0)
Constructor.
getRenderPageContainer()
Get render page container.
setOriginalPresentationTitle($originalPresentationTitle)