ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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
4include_once("./Services/COPage/classes/class.ilPageObjectGUI.php");
5include_once("./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
6include_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
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?>
static lookupTitle($a_id)
Lookup title.
Class ilMediaPoolPage GUI class.
__construct($a_id=0, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
Constructor.
getTabs($a_activate="")
adds tabs to tab gui object
getRawContent()
Get raw content.
showPage($a_no_title=false)
Show page.
getMediaPoolPage()
Get Media Pool Page Object.
setMediaPoolPage($a_media_pool_page)
Set Media Pool Page Object.
static getGUIForTitle($a_media_pool_id, $a_title, $a_old_nr=0)
Get media pool page gui for id and title.
& executeCommand()
execute command
preview()
View media pool page.
getContentStylePath($a_style_id)
get content style path
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
getSyntaxStylePath()
get syntax style path
Class ilPageObjectGUI.
setPresentationTitle($a_title="")
showPage()
display content of page
setRawPageContent($a_rawpagecontent)
Set Get raw page content only.
setPageObject($a_pg_obj)
Set Page Object.
getPageObject()
Get Page Object.
setEditPreview($a_editpreview)
Set Display first Edit tab, then Preview tab, instead of Page and Edit.
setTemplateOutput($a_output=true)
setStyleId($a_styleid)
Set Style Id.
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35
global $ilDB