ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilMediaPoolPageGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/COPage/classes/class.ilPageObjectGUI.php");
5 include_once("./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
6 include_once("./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
7 
20 {
24  function __construct($a_id = 0, $a_old_nr = 0)
25  {
26  global $tpl;
27 
28  parent::__construct("mep", $a_id, $a_old_nr);
29 
30  // content style
31  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
32  $tpl->setCurrentBlock("ContentStyle");
33  $tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
35  $tpl->parseCurrentBlock();
36 
37  $tpl->setCurrentBlock("SyntaxStyle");
38  $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
40  $tpl->parseCurrentBlock();
41 
42  $this->setEnabledMaps(false);
43  $this->setPreventHTMLUnmasking(false);
44  $this->setEnabledInternalLinks(false);
45 
46  }
47 
48  function initPageObject($a_parent_type, $a_id, $a_old_nr)
49  {
50  $page = new ilMediaPoolPage($a_id, $a_old_nr);
51  $this->setPageObject($page);
52  }
53 
57  function &executeCommand()
58  {
59  global $ilCtrl, $ilTabs;
60 
61  $next_class = $this->ctrl->getNextClass($this);
62  $cmd = $this->ctrl->getCmd();
63 
64  switch($next_class)
65  {
66  default:
67  return parent::executeCommand();
68  }
69  }
70 
76  function setMediaPoolPage($a_media_pool_page)
77  {
78  $this->setPageObject($a_media_pool_page);
79  }
80 
86  function getMediaPoolPage()
87  {
88  return $this->getPageObject();
89  }
90 
94  static function getGUIForTitle($a_media_pool_id, $a_title, $a_old_nr = 0)
95  {
96  global $ilDB;
97 
98  include_once("./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
99  $id = ilMediaPoolPage::getPageIdForTitle($a_media_pool_id, $a_title);
100  $page_gui = new ilMediaPoolPageGUI($id, $a_old_nr);
101 
102  return $page_gui;
103  }
104 
108  function preview()
109  {
110  global $ilCtrl, $ilAccess, $lng;
111 
112  return parent::preview();
113  }
114 
118  function showPage($a_no_title = false)
119  {
120  global $tpl, $ilCtrl;
121 
122  $this->setTemplateOutput(false);
123  if (!$a_no_title)
124  {
126  }
127  $output = parent::showPage();
128 
129  return $output;
130  }
131 
132  function getTabs($a_activate = "")
133  {
134  global $ilTabs, $ilCtrl;
135 
136  parent::getTabs($a_activate);
137  }
138 
145  function getRawContent()
146  {
147  $this->setRawPageContent(true);
148  $this->setLinkXML("");
149  return $this->showPage(true);
150  }
151 
152 }
153 ?>