5 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
68 $this->lng = $DIC->language();
69 $this->ctrl = $DIC->ctrl();
70 $this->
user = $DIC->user();
71 $this->tabs = $DIC->tabs();
72 $this->tree = $DIC->repositoryTree();
73 $this->tpl = $DIC[
"tpl"];
74 $this->toolbar = $DIC->toolbar();
75 $this->error = $DIC[
"ilErr"];
76 $lng = $DIC->language();
79 $this->multiple =
false;
80 $this->page_back_title =
$lng->txt(
"cont_back");
81 if (
$_GET[
"returnCommand"] !=
"") {
82 $this->mode =
"getObject";
90 rawurlencode(
$_GET[
"returnCommand"])
106 $next_class =
$ilCtrl->getNextClass($this);
109 switch ($next_class) {
110 case "ilobjmediaobjectgui":
111 $ilCtrl->setReturn($this,
"view");
112 $ilTabs->clearTargets();
113 $ilTabs->setBackTarget(
115 $ilCtrl->getLinkTarget($this,
"view")
123 $ilCtrl->redirect($this,
"view");
129 $ret = $this->$cmd();
141 $this->multiple = $a_multiple;
149 return $this->multiple;
159 $this->insertbuttontitle = $a_insertbuttontitle;
171 if ($this->insertbuttontitle ==
"") {
172 return $lng->txt(
"insert");
175 return $this->insertbuttontitle;
190 include_once(
"./Services/UIComponent/Button/classes/class.ilLinkButton.php");
192 $but->setUrl(
$ilCtrl->getLinkTargetByClass(
"ilobjmediaobjectgui",
"create"));
193 $but->setCaption(
"cont_create_mob");
194 $ilToolbar->addButtonInstance($but);
196 include_once(
"./Services/Clipboard/classes/class.ilClipboardTableGUI.php");
198 $tpl->setContent($table_gui->getHTML());
207 $this->mode =
"getObject";
215 public function remove()
223 if (!isset(
$_POST[
"id"])) {
227 foreach (
$_POST[
"id"] as $obj_id) {
228 $id = explode(
":", $obj_id);
229 if (
$id[0] ==
"mob") {
230 $ilUser->removeObjectFromClipboard(
$id[1],
"mob");
231 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
235 if (
$id[0] ==
"incl") {
236 $ilUser->removeObjectFromClipboard(
$id[1],
"incl");
239 $ilCtrl->redirect($this,
"view");
251 if (!isset(
$_POST[
"id"])) {
256 if (count(
$_POST[
"id"]) > 1) {
267 return $_SESSION[
"ilEditClipboard_mob_id"];
279 $tpl->setTitle(
$lng->txt(
"clipboard"));
288 $this->page_back_title = $a_title;
301 $tabs_gui->setBackTarget(
302 $this->page_back_title,
303 $ilCtrl->getParentReturn($this)
TableGUI clipboard items.
Class ilEditClipboardGUI.
if(!array_key_exists('StateId', $_REQUEST)) $id
setInsertButtonTitle($a_insertbuttontitle)
Set Insert Button Title.
getMultipleSelections()
check wether multiple selections are enabled
__construct()
Constructor public.
Create styles array
The data for the language used.
setPageBackTitle($a_title)
Set title for back link.
getInsertButtonTitle()
Get Insert Button Title.
setMultipleSelections($a_multiple=true)
set, if multiple selections are enabled
static redirect($a_script)
executeCommand()
execute command
getTabs(&$tabs_gui)
adds tabs to tab gui object