ILIAS  Release_5_0_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  $tpl->setCurrentBlock("SyntaxStyle");
37  $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
39  $tpl->parseCurrentBlock();
40 
42 
43  $this->setEditPreview(true);
44  }
45 
49  function &executeCommand()
50  {
51  global $ilCtrl, $ilTabs;
52 
53  $next_class = $this->ctrl->getNextClass($this);
54  $cmd = $this->ctrl->getCmd();
55 
56  switch($next_class)
57  {
58  default:
59  return parent::executeCommand();
60  }
61  }
62 
68  function setMediaPoolPage($a_media_pool_page)
69  {
70  $this->setPageObject($a_media_pool_page);
71  }
72 
78  function getMediaPoolPage()
79  {
80  return $this->getPageObject();
81  }
82 
86  static function getGUIForTitle($a_media_pool_id, $a_title, $a_old_nr = 0)
87  {
88  global $ilDB;
89 
90  include_once("./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
91  $id = ilMediaPoolPage::getPageIdForTitle($a_media_pool_id, $a_title);
92  $page_gui = new ilMediaPoolPageGUI($id, $a_old_nr);
93 
94  return $page_gui;
95  }
96 
100  function preview()
101  {
102  global $ilCtrl, $ilAccess, $lng;
103 
104  return parent::preview();
105  }
106 
110  function showPage($a_no_title = false)
111  {
112  global $tpl, $ilCtrl;
113 
114  $this->setTemplateOutput(false);
115  if (!$a_no_title)
116  {
118  }
119  $output = parent::showPage();
120 
121  return $output;
122  }
123 
124  function getTabs($a_activate = "")
125  {
126  global $ilTabs, $ilCtrl;
127 
128  parent::getTabs($a_activate);
129  }
130 
137  function getRawContent()
138  {
139  $this->setRawPageContent(true);
140  $this->setLinkXML("");
141  return $this->showPage(true);
142  }
143 
144 }
145 ?>