39 $this->
ctrl = $DIC->ctrl();
40 $this->
access = $DIC->access();
41 $this->
tabs = $DIC->tabs();
42 $this->tpl =
$DIC[
"tpl"];
43 $this->
lng = $DIC->language();
50 $next_class = $this->
ctrl->getNextClass($this);
53 $cmd = $this->
ctrl->getCmd();
55 switch ($next_class) {
67 switch ($this->sub_command) {
92 if ($this->edit_repo->getMediaPool() > 0 &&
93 $ilAccess->checkAccess(
"write",
"", $this->edit_repo->getMediaPool())
97 $ilCtrl->setParameter($this,
"subCmd",
"poolSelection");
100 $lng->
txt(
"cont_select_media_pool"),
101 $ilCtrl->getLinkTarget($this,
"insert")
103 $html = $tb->getHTML();
105 $ilCtrl->setParameter($this,
"subCmd",
"");
108 $ilCtrl->setParameter($this,
"subCmd",
"insertFromPool");
116 $mpool_table->setInsertCommand(
"create");
118 $html .= $mpool_table->getHTML();
134 $ilCtrl->
setParameter($this,
"subCmd",
"poolSelection");
138 $exp->setTypeWhiteList(array(
"root",
"cat",
"grp",
"fold",
"crs",
"mep"));
139 $exp->setClickableTypes(array(
'mep'));
141 if (!$exp->handleCommand()) {
151 $ids = $this->request->getIntArray(
"id");
152 if (count($ids) > 0) {
153 for ($i = count($ids) - 1; $i >= 0; $i--) {
156 $this->content_obj->create(
158 $this->request->getHierId(),
161 $this->content_obj->setContentType(
"mep");
162 $this->content_obj->setContentId($ids[$i]);
164 $this->updated = $this->pg_obj->update();
166 if ($this->updated ===
true) {
167 $this->
ctrl->returnToParent($this,
"jump" . $this->hier_id);
180 $this->edit_repo->setMediaPool($this->request->getInt(
"pool_ref_id"));
181 $ilCtrl->
setParameter($this,
"subCmd",
"insertFromPool");
182 $ilCtrl->redirect($this,
"insert");
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
@inheritDoc
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
insertFromPool()
Insert page snippet from media pool.
create()
create new content include in dom and update page in db
insert()
Insert new resources component form.
selectPool()
Select concrete pool.
poolSelection()
Pool Selection.
__construct(ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="")
Class ilPCContentInclude.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
ilGlobalTemplateInterface $tpl
Content object of ilPageObject (see ILIAS DTD).
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setContent(string $a_html)
Sets content for standard template.
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc