ILIAS  Release_4_4_x_branch Revision 61816
 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, $a_prevent_get_id = false, $a_lang = "")
25  {
26  global $tpl;
27 
28  parent::__construct("mep", $a_id, $a_old_nr, $a_prevent_get_id, $a_lang);
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  }
43 
47  function &executeCommand()
48  {
49  global $ilCtrl, $ilTabs;
50 
51  $next_class = $this->ctrl->getNextClass($this);
52  $cmd = $this->ctrl->getCmd();
53 
54  switch($next_class)
55  {
56  default:
57  return parent::executeCommand();
58  }
59  }
60 
66  function setMediaPoolPage($a_media_pool_page)
67  {
68  $this->setPageObject($a_media_pool_page);
69  }
70 
76  function getMediaPoolPage()
77  {
78  return $this->getPageObject();
79  }
80 
84  static function getGUIForTitle($a_media_pool_id, $a_title, $a_old_nr = 0)
85  {
86  global $ilDB;
87 
88  include_once("./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
89  $id = ilMediaPoolPage::getPageIdForTitle($a_media_pool_id, $a_title);
90  $page_gui = new ilMediaPoolPageGUI($id, $a_old_nr);
91 
92  return $page_gui;
93  }
94 
98  function preview()
99  {
100  global $ilCtrl, $ilAccess, $lng;
101 
102  return parent::preview();
103  }
104 
108  function showPage($a_no_title = false)
109  {
110  global $tpl, $ilCtrl;
111 
112  $this->setTemplateOutput(false);
113  if (!$a_no_title)
114  {
116  }
117  $output = parent::showPage();
118 
119  return $output;
120  }
121 
122  function getTabs($a_activate = "")
123  {
124  global $ilTabs, $ilCtrl;
125 
126  parent::getTabs($a_activate);
127  }
128 
135  function getRawContent()
136  {
137  $this->setRawPageContent(true);
138  $this->setLinkXML("");
139  return $this->showPage(true);
140  }
141 
142 }
143 ?>