34 $this->
ctrl = $DIC->ctrl();
35 $this->
lng = $DIC->language();
36 $this->
access = $DIC->access();
37 $this->
user = $DIC->user();
38 $ilCtrl = $DIC->ctrl();
39 $lng = $DIC->language();
50 "tpl.clipboard_tbl_row.html",
51 "Modules/MediaPool/Clipboard" 61 if ($this->parent_obj->mode ===
"getObject") {
62 $this->
addMultiCommand(
"insert", $this->parent_obj->getInsertButtonTitle());
76 $objs =
$ilUser->getClipboardObjects(
"mob");
77 $objs2 =
$ilUser->getClipboardObjects(
"incl");
78 $objs = array_merge($objs, $objs2);
83 protected function fillRow(array $a_set): void
88 if ($a_set[
"type"] ===
"mob") {
91 $med = $mob->getMediaItem(
"Standard");
92 $target = $med->getThumbnailTarget();
94 $this->tpl->setCurrentBlock(
"thumbnail");
95 $this->tpl->setVariable(
"IMG_THUMB", $target);
96 $this->tpl->parseCurrentBlock();
99 $med->getLocationType() ===
"Reference") {
100 $size = getimagesize($med->getLocation());
101 if ($size[0] > 0 && $size[1] > 0) {
105 $w = (
int) ($size[0] / $r);
106 $h = (
int) ($size[1] / $r);
107 $this->tpl->setVariable(
113 } elseif ($a_set[
"type"] ===
"incl") {
114 $this->tpl->setCurrentBlock(
"thumbnail");
115 $this->tpl->setVariable(
119 $this->tpl->parseCurrentBlock();
123 if ($this->parent_obj->mode !==
"getObject" && $a_set[
"type"] ===
"mob") {
125 $this->tpl->setCurrentBlock(
"edit");
126 $ilCtrl->setParameter($this->parent_obj,
"clip_item_id", $a_set[
"id"]);
127 $ilCtrl->setParameterByClass(
"ilObjMediaObjectGUI",
"clip_item_id", $a_set[
"id"]);
128 $this->tpl->setVariable(
130 $ilCtrl->getLinkTargetByClass(
131 "ilObjMediaObjectGUI",
135 $this->tpl->setVariable(
"TEXT_OBJECT", $a_set[
"title"] .
136 " [" . $a_set[
"id"] .
"]");
138 $this->tpl->setCurrentBlock(
"show");
139 $this->tpl->setVariable(
"TEXT_OBJECT2", $a_set[
"title"] .
140 " [" . $a_set[
"id"] .
"]");
142 $this->tpl->parseCurrentBlock();
144 if ($a_set[
"type"] ===
"mob") {
145 $this->tpl->setVariable(
150 $this->tpl->setVariable(
"CHECKBOX_ID", $a_set[
"type"] .
":" . $a_set[
"id"]);
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...
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
loadLanguageModule(string $a_module)
Load language module.
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
getItems()
Get items from user clipboard.
__construct(object $a_parent_obj, string $a_parent_cmd)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
static deducibleSize(string $a_mime)
checks if mime type is provided by getimagesize()
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)