4include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
5include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
6include_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();
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)
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();
143 $output = parent::showPage();
153 parent::getTabs($a_activate);
165 $this->setLinkXML(
"");
180 $this->ctrl->returnToParent($this);
186 $this->
ui->factory()->link()->standard(
187 $this->lng->txt(
'cont_usage'),
188 $this->ctrl->getLinkTargetByClass([
189 ilObjMediaPoolGUI::class
190 ],
'showMediaPoolPageUsages')
192 $this->
ui->factory()->link()->standard(
193 $this->lng->txt(
'settings'),
194 $this->ctrl->getLinkTargetByClass([
195 ilObjMediaPoolGUI::class
196 ],
'editMediaPoolPage')
An exception for terminatinating execution or to throw for unit testing.
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
executeCommand()
execute command
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.
setTemplate($tpl)
Set template.
getAdditionalPageActions()
Get additional page actions.
preview()
View media pool page.
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static getContentStylePath($a_style_id, $add_random=true, $add_token=true)
get content style path
getRawPageContent()
Get Get raw page content only.
setPresentationTitle($a_title="")
showPage()
display content of page
setRawPageContent($a_rawpagecontent)
Set Get raw page content only.
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.
setPageObject(ilPageObject $a_pg_obj)
Set Page Object.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc