24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
45 $lng->loadLanguageModule(
"mep");
48 $this->
addColumn($lng->txt(
"mep_thumbnail"),
"",
"1");
49 $this->
addColumn($lng->txt(
"mep_title_and_description"),
"",
"100%");
53 "Services/Clipboard");
57 $this->
setTitle($lng->txt(
"clipboard"),
"icon_clip.gif", $lng->txt(
"clipboard"));
62 if ($this->parent_obj->mode ==
"getObject")
64 $this->
addMultiCommand(
"insert", $this->parent_obj->getInsertButtonTitle());
78 $objs = $ilUser->getClipboardObjects(
"mob");
79 $objs2 = $ilUser->getClipboardObjects(
"incl");
80 $objs = array_merge($objs, $objs2);
94 if ($a_set[
"type"] ==
"mob")
98 $med = $mob->getMediaItem(
"Standard");
99 $target = $med->getThumbnailTarget();
102 $this->tpl->setCurrentBlock(
"thumbnail");
103 $this->tpl->setVariable(
"IMG_THUMB", $target);
104 $this->tpl->parseCurrentBlock();
107 else if ($a_set[
"type"] ==
"incl")
109 $this->tpl->setCurrentBlock(
"thumbnail");
110 $this->tpl->setVariable(
"IMG_THUMB",
112 $this->tpl->parseCurrentBlock();
116 if ($this->parent_obj->mode !=
"getObject" && $a_set[
"type"] ==
"mob")
119 $this->tpl->setCurrentBlock(
"edit");
120 $ilCtrl->setParameter($this->parent_obj,
"clip_item_id", $a_set[
"id"]);
121 $ilCtrl->setParameterByClass(
"ilObjMediaObjectGUI",
"clip_item_id", $a_set[
"id"]);
122 $this->tpl->setVariable(
"EDIT_LINK",
123 $ilCtrl->getLinkTargetByClass(
"ilObjMediaObjectGUI",
"edit",
124 array(
"ilEditClipboardGUI")));
125 $this->tpl->setVariable(
"TEXT_OBJECT", $a_set[
"title"].
126 " [".$a_set[
"id"].
"]");
127 $this->tpl->parseCurrentBlock();
131 $this->tpl->setCurrentBlock(
"show");
132 $this->tpl->setVariable(
"TEXT_OBJECT2", $a_set[
"title"].
133 " [".$a_set[
"id"].
"]");
134 $this->tpl->parseCurrentBlock();
137 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
138 if ($a_set[
"type"] ==
"mob")
140 $this->tpl->setVariable(
"MEDIA_INFO",
143 $this->tpl->setVariable(
"CHECKBOX_ID", $a_set[
"type"].
":".$a_set[
"id"]);