5 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
25 parent::__construct($a_parent_obj, $a_parent_cmd);
26 $lng->loadLanguageModule(
"mep");
29 $this->
addColumn($lng->txt(
"mep_thumbnail"),
"",
"1");
30 $this->
addColumn($lng->txt(
"mep_title_and_description"),
"",
"100%");
34 "Services/Clipboard");
38 $this->
setTitle($lng->txt(
"clipboard"));
43 if ($this->parent_obj->mode ==
"getObject")
45 $this->
addMultiCommand(
"insert", $this->parent_obj->getInsertButtonTitle());
59 $objs = $ilUser->getClipboardObjects(
"mob");
60 $objs2 = $ilUser->getClipboardObjects(
"incl");
61 $objs = array_merge($objs, $objs2);
75 if ($a_set[
"type"] ==
"mob")
79 $med = $mob->getMediaItem(
"Standard");
80 $target = $med->getThumbnailTarget();
83 $this->tpl->setCurrentBlock(
"thumbnail");
84 $this->tpl->setVariable(
"IMG_THUMB",
$target);
85 $this->tpl->parseCurrentBlock();
88 else if ($a_set[
"type"] ==
"incl")
90 $this->tpl->setCurrentBlock(
"thumbnail");
91 $this->tpl->setVariable(
"IMG_THUMB",
93 $this->tpl->parseCurrentBlock();
97 if ($this->parent_obj->mode !=
"getObject" && $a_set[
"type"] ==
"mob")
100 $this->tpl->setCurrentBlock(
"edit");
101 $ilCtrl->setParameter($this->parent_obj,
"clip_item_id", $a_set[
"id"]);
102 $ilCtrl->setParameterByClass(
"ilObjMediaObjectGUI",
"clip_item_id", $a_set[
"id"]);
103 $this->tpl->setVariable(
"EDIT_LINK",
104 $ilCtrl->getLinkTargetByClass(
"ilObjMediaObjectGUI",
"edit",
105 array(
"ilEditClipboardGUI")));
106 $this->tpl->setVariable(
"TEXT_OBJECT", $a_set[
"title"].
107 " [".$a_set[
"id"].
"]");
108 $this->tpl->parseCurrentBlock();
112 $this->tpl->setCurrentBlock(
"show");
113 $this->tpl->setVariable(
"TEXT_OBJECT2", $a_set[
"title"].
114 " [".$a_set[
"id"].
"]");
115 $this->tpl->parseCurrentBlock();
118 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
119 if ($a_set[
"type"] ==
"mob")
121 $this->tpl->setVariable(
"MEDIA_INFO",
124 $this->tpl->setVariable(
"CHECKBOX_ID", $a_set[
"type"].
":".$a_set[
"id"]);
TableGUI clipboard items.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
fillRow($a_set)
Standard Version of Fill Row.
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
getItems()
Get items from user clipboard.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setEnableHeader($a_enableheader)
Set Enable Header.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.