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_incl");
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");
insertFromPool()
Insert page snippet from media pool.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
poolSelection()
Pool Selection.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
insert()
Insert new resources component form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupObjId(int $ref_id)
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
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.
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
ilGlobalTemplateInterface $tpl
create()
create new content include in dom and update page in db
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="")
selectPool()
Select concrete pool.
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
static _lookupType(int $id, bool $reference=false)