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");
29 public function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id =
false, $a_lang =
"")
33 $this->tpl = $DIC[
"tpl"];
34 $this->ctrl = $DIC->ctrl();
35 $this->tabs = $DIC->tabs();
36 $this->access = $DIC->access();
37 $this->lng = $DIC->language();
40 parent::__construct(
"mep", $a_id, $a_old_nr, $a_prevent_get_id, $a_lang);
42 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
56 $next_class = $this->ctrl->getNextClass($this);
57 $cmd = $this->ctrl->getCmd();
59 switch ($next_class) {
61 return parent::executeCommand();
88 public static function getGUIForTitle($a_media_pool_id, $a_title, $a_old_nr = 0)
92 $ilDB = $DIC->database();
94 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
95 $id = ilMediaPoolPage::getPageIdForTitle($a_media_pool_id, $a_title);
110 return parent::preview();
123 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
124 $tpl->setCurrentBlock(
"ContentStyle");
126 "LOCATION_CONTENT_STYLESHEET",
129 $tpl->parseCurrentBlock();
131 $tpl->setCurrentBlock(
"SyntaxStyle");
133 "LOCATION_SYNTAX_STYLESHEET",
136 $tpl->parseCurrentBlock();
153 parent::getTabs($a_activate);
getMediaPoolPage()
Get Media Pool Page Object.
setEditPreview($a_editpreview)
Set Display first Edit tab, then Preview tab, instead of Page and Edit.
getRawContent()
Get raw content.
getPageObject()
Get Page Object.
setTemplateOutput($a_output=true)
__construct($a_id=0, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
Constructor.
executeCommand()
execute command
if(!array_key_exists('StateId', $_REQUEST)) $id
setPageObject(ilPageObject $a_pg_obj)
Set Page Object.
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
getRawPageContent()
Get Get raw page content only.
setRawPageContent($a_rawpagecontent)
Set Get raw page content only.
setPresentationTitle($a_title="")
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true)
get content style path
setStyleId($a_styleid)
Set Style Id.
showPage($a_no_title=false)
Show page.
preview()
View media pool page.
showPage()
display content of page
static getGUIForTitle($a_media_pool_id, $a_title, $a_old_nr=0)
Get media pool page gui for id and title.
setMediaPoolPage($a_media_pool_page)
Set Media Pool Page Object.
Class ilMediaPoolPage GUI class.