5 require_once
"./classes/class.ilObjectGUI.php";
32 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
33 $lng->loadLanguageModule(
"mcst");
34 $lng->loadLanguageModule(
"news");
36 $ilCtrl->saveParameter($this,
"item_id");
38 include_once (
"./Modules/MediaCast/classes/class.ilMediaCastSettings.php");
40 $this->purposeSuffixes = $settings->getPurposeSuffixes();
41 $this->mimeTypes = $settings->getMimeTypes();
46 global $ilUser, $ilTabs;
48 $next_class = $this->ctrl->getNextClass($this);
49 $cmd = $this->ctrl->getCmd();
54 case "ilinfoscreengui":
61 $ilTabs->activateTab(
"export");
62 include_once(
"./Services/Export/classes/class.ilExportGUI.php");
64 $exp_gui->addFormat(
"xml");
65 $ret = $this->ctrl->forwardCommand($exp_gui);
70 case 'ilpermissiongui':
71 $ilTabs->activateTab(
"id_permissions");
72 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
74 $ret =& $this->ctrl->forwardCommand($perm_gui);
83 if (
$cmd !=
"infoScreenObject")
109 if (!$rbacsystem->checkAccess(
"create",
$_GET[
"ref_id"], $new_type))
111 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
118 $html1 = $this->form->getHtml();
121 $html2 = $this->form->getHTML();
123 $tpl->setContent($html1.
"<br/>".$html2);
134 $lng->loadLanguageModule(
"mcst");
135 $ilTabs->activateTab(
"settings");
137 include(
"Services/Form/classes/class.ilPropertyFormGUI.php");
143 $this->form->addItem($tit);
147 $this->form->addItem($des);
149 $this->form->
setTitle($lng->txt(
"mcst_new"));
150 $this->form->addCommandButton(
"save", $lng->txt(
"mcst_add"));
151 $this->form->addCommandButton(
"cancel", $lng->txt(
"cancel"));
154 $ilCtrl->setParameter($this,
"new_type",
"mcst");
156 $this->form->setFormAction($ilCtrl->getFormAction($this,
"save"));
169 $lng->loadLanguageModule(
"mcst");
171 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
173 $this->form->setTarget(
"_top");
176 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
179 $fi->setRequired(
true);
180 $this->form->addItem($fi);
182 $this->form->addCommandButton(
"importFile", $lng->txt(
"import"));
183 $this->form->addCommandButton(
"cancel", $lng->txt(
"cancel"));
184 $this->form->setTitle($lng->txt($a_new_type.
"_import"));
186 $this->form->setFormAction($ilCtrl->getFormAction($this));
201 if (!$rbacsystem->checkAccess(
"create",
$_GET[
"ref_id"], $new_type))
203 $this->ilias->raiseError($this->lng->txt(
"no_create_permission"), $this->ilias->error_obj->MESSAGE);
205 $this->ctrl->setParameter($this,
"new_type", $new_type);
207 if ($this->form->checkInput())
210 include_once(
"./Services/Export/classes/class.ilImport.php");
212 $new_id = $imp->importObject($newObj, $_FILES[
"importfile"][
"tmp_name"],
213 $_FILES[
"importfile"][
"name"], $new_type);
219 $newObj->createReference();
220 $newObj->putInTree($_GET[
"ref_id"]);
221 $newObj->setPermissions($_GET[
"ref_id"]);
228 $this->form->setValuesByPost();
229 $tpl->setContent($this->form->getHtml());
241 ilUtil::redirect(
"ilias.php?baseClass=ilMediaCastHandlerGUI&ref_id=".$newObj->getRefId().
"&cmd=editSettings");
254 if ($this->form->checkInput())
267 ilUtil::redirect(
"ilias.php?baseClass=ilMediaCastHandlerGUI&ref_id=".$newObj->getRefId().
"&cmd=editSettings");
269 $this->form->setValuesByPost();
270 $tpl->setContent($this->form->getHtml());
279 global
$tpl,
$lng, $ilAccess, $ilTabs;
282 $ilTabs->activateTab(
"id_content");
284 $med_items = $this->
object->getItemsArray();
286 include_once(
"./Modules/MediaCast/classes/class.ilMediaCastTableGUI.php");
289 $table_gui->setTitle($lng->txt(
"mcst_media_cast"));
290 $table_gui->setData($med_items);
292 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
294 $table_gui->addCommandButton(
"addCastItem", $lng->txt(
"add"));
295 $table_gui->addMultiCommand(
"confirmDeletionItems", $lng->txt(
"delete"));
296 $table_gui->setSelectAllCheckbox(
"item_id");
299 include_once(
"./Services/Block/classes/class.ilBlockSetting.php");
301 0, $this->object->getId());
307 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
310 if ($enable_internal_rss)
313 $items = $this->
object->getItemsArray();
314 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
319 foreach ($items as $id => $item)
323 if ($mob->hasPurposeItem($purpose))
329 $url = ILIAS_HTTP_PATH.
"/feed.php?client_id=".rawurlencode(CLIENT_ID).
"&".
"ref_id=".$_GET[
"ref_id"].
"&purpose=$purpose";
330 $title = $lng->txt(
"news_feed_url");
335 $row1 .=
"<A href='$url' target='$target'><img src='$icon' alt='$title'/></A>";
336 if ($this->object->getPublicFiles())
338 $url = preg_replace(
"/https?/i",
"itpc",$url);
339 $title = $lng->txt(
"news_feed_url");
342 $row2 .=
"<A href='$url' target='$target'><img src='$icon' alt='$title'/></A>";
354 $html .=
" ".$row2;
358 $table_gui->setHeaderHTML($html);
363 $tpl->setContent($table_gui->getHTML());
365 $tpl->setPermanentLink($this->object->getType(), $this->
object->getRefId());
378 $tpl->setContent($this->form_gui->getHTML());
390 $tpl->setContent($this->form_gui->getHTML());
401 $ilTabs->activateTab(
"id_content");
403 $lng->loadLanguageModule(
"mcst");
406 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
408 include(
"Services/Form/classes/class.ilPropertyFormGUI.php");
410 $this->form_gui->setMultipart(
true);
415 $this->form_gui->addItem($text_input);
420 $this->form_gui->addItem($text_area);
423 if ($enable_internal_rss)
426 $radio_option =
new ilRadioOption($lng->txt(
"access_users"),
"users");
427 $radio_group->addOption($radio_option);
428 $radio_option =
new ilRadioOption($lng->txt(
"access_public"),
"public");
429 $radio_group->addOption($radio_option);
430 $radio_group->
setInfo($lng->txt(
"mcst_visibility_info"));
431 $radio_group->setRequired(
true);
432 $radio_group->setValue($this->object->getDefaultAccess() == 0 ?
"users" :
"public");
433 $this->form_gui->addItem($radio_group);
438 $dur->
setInfo($lng->txt(
"mcst_duration_info"));
439 $dur->setShowDays(
false);
440 $dur->setShowHours(
true);
441 $dur->setShowSeconds(
true);
442 $this->form_gui->addItem($dur);
447 $section->setTitle($lng->txt(
"mcst_".strtolower($purpose).
"_title"));
448 $this->form_gui->addItem($section);
449 if ($a_mode !=
"create")
454 $label->setInfo($lng->txt(
"mcst_current_value_info"));
455 $this->form_gui->addItem($label);
456 $this->form_gui->addItem($value);
460 $file->setSuffixes($this->purposeSuffixes[$purpose]);
461 $this->form_gui->addItem(
$file);
464 $text_input->setInfo($lng->txt(
"mcst_reference_info"));
465 $this->form_gui->addItem($text_input);
466 if ($purpose !=
"Standard")
469 $clearCheckBox->setPostVar(
"delete_".$purpose);
470 $clearCheckBox->setTitle($lng->txt(
"mcst_clear_purpose_title"));
471 $this->form_gui->addItem($clearCheckBox);
474 $mimeTypeSelection->setPostVar(
"mimetype_".$purpose);
475 $mimeTypeSelection->setTitle($lng->txt(
"mcst_mimetype"));
476 $mimeTypeSelection->setInfo($lng->txt(
"mcst_mimetype_info"));
477 $options = array($lng->txt(
"mcst_automatic_detection"));
478 $options = array_merge($options, $this->mimeTypes);
479 $mimeTypeSelection->setOptions($options);
480 $this->form_gui->addItem($mimeTypeSelection);
486 if ($a_mode ==
"create")
488 $this->form_gui->setTitle($lng->txt(
"mcst_add_new_item"));
489 $this->form_gui->addCommandButton(
"saveCastItem", $lng->txt(
"save"));
493 $this->form_gui->setTitle($lng->txt(
"mcst_edit_item"));
494 $this->form_gui->addCommandButton(
"updateCastItem", $lng->txt(
"save"));
496 $this->form_gui->addCommandButton(
"listItems", $lng->txt(
"cancel"));
497 $this->form_gui->setFormAction($ilCtrl->getFormAction($this,
"saveCastItem"));
509 if (count ($mediaItems) > 0)
511 foreach ($mediaItems as $med)
513 if (!isset ($values[
"title"]))
516 $values[
"title"] = $this->mcst_item->getTitle();
517 $values[
"description"] = $this->mcst_item->getContent();
518 $values[
"visibility"] = $this->mcst_item->getVisibility();
519 $length = explode(
":", $this->mcst_item->getPlaytime());
520 $values[
"duration"] = array(
"hh" => $length[0],
"mm" => $length[1],
"ss" => $length[2]);
523 $values[
"value_".$med->getPurpose()] = (strlen($med->getLocation())> 100) ?
"...".substr($med->getLocation(), strlen($med->getLocation()) - 100) : $med->getLocation();
524 $values[
"label_value_".$med->getPurpose()] = (strlen($med->getLocation())> 100) ?
"...".substr($med->getLocation(), strlen($med->getLocation()) - 100) : $med->getLocation();
525 $mimeTypesValuesAsKey = array_flip($this->mimeTypes);
526 if (array_key_exists($med->getFormat(), $mimeTypesValuesAsKey))
527 $values[
"mimetype_".$med->getPurpose()] = $mimeTypesValuesAsKey[$med->getFormat()]+1;
531 if (!isset ($values[
"value_".$purpose]))
533 $values[
"label_value_".$purpose] = $lng->txt(
"none");
534 $values[
"value_".$purpose] = $lng->txt(
"none");
537 $this->form_gui->setValuesByArray($values);
548 $ilTabs->activateTab(
"id_content");
552 if (
$_POST[
"url_Standard"] ==
"" && !$_FILES[
'file_Standard'][
'tmp_name']) {
555 }
else if ($this->form_gui->checkInput())
559 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
568 $title = $this->form_gui->getInput(
"title") !=
"" ? $this->form_gui->getInput(
"title") : basename(
$file);
569 $description = $this->form_gui->getInput(
"description");
571 $mob->setDescription($description);
578 foreach ($this->additionalPurposes as $purpose)
581 $file_gui = $this->form_gui->getInput(
"file_".$purpose);
582 $url_gui = $this->form_gui->getInput(
"url_".$purpose);
583 if ($url_gui || $file_gui[
"size"] > 0)
596 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
599 include_once(
"./Services/News/classes/class.ilNewsItem.php");
601 $mc_item->setMobId($mob->getId());
603 $mc_item->setContextObjId($this->object->getId());
604 $mc_item->setContextObjType($this->object->getType());
605 $mc_item->setUserId($ilUser->getId());
606 $mc_item->setPlaytime($duration);
607 $mc_item->setTitle(
$title);
608 $mc_item->setContent($description);
609 $mc_item->setLimitation(
false);
610 if ($enable_internal_rss)
612 $mc_item->setVisibility($this->form_gui->getInput(
"visibility"));
616 $mc_item->setVisibility(
"users");
620 $ilCtrl->redirect($this,
"listItems");
636 $duration = isset($this->form_gui) ? $this->form_gui->getInput(
"duration") :
"";
637 if ($duration[
"hh"] == 0 && $duration[
"mm"] == 0 && $duration[
"ss"] == 0 && is_file(
$file))
639 include_once(
"./Services/MediaObjects/classes/class.ilMediaAnalyzer.php");
641 $ana->setFile(
$file);
643 $dur = $ana->getPlaytimeString();
644 $dur = explode(
":", $dur);
645 $duration[
"mm"] = $dur[0];
646 $duration[
"ss"] = $dur[1];
648 $duration = str_pad($duration[
"hh"], 2 ,
"0", STR_PAD_LEFT).
":".
649 str_pad($duration[
"mm"], 2 ,
"0", STR_PAD_LEFT).
":".
650 str_pad($duration[
"ss"], 2 ,
"0", STR_PAD_LEFT);
663 $mob->addMediaItem($mediaItem);
664 $mediaItem->setPurpose($purpose);
676 $purpose = $mediaItem->getPurpose();
677 $url_gui = $this->form_gui->getInput (
"url_".$purpose);
678 $file_gui = $this->form_gui->getInput (
"file_".$purpose);
682 $file = $this->form_gui->getInput (
"url_".$purpose);
684 $location = $this->form_gui->getInput (
"url_".$purpose);
685 $locationType =
"Reference";
686 } elseif ($file_gui[
"size"] > 0){
690 if (!is_dir($mob_dir))
691 $mob->createDirectory();
698 $locationType =
"LocalFile";
705 if ((
int)
$_POST[
"mimetype_".$purpose] != 0) {
708 if ((
int)
$_POST[
"mimetype_".$purpose]-1 < count ($this->mimeTypes))
710 $format = $this->mimeTypes[(int)
$_POST[
"mimetype_".$purpose] - 1];
711 $mediaItem->setFormat($format);
713 } elseif ($mediaItem->getLocation () !=
"") {
715 $mediaItem->setFormat($format);
727 $mediaItem->setFormat($format);
729 $mediaItem->setLocationType($locationType);
730 $mediaItem->setHAlign(
"Left");
731 $mediaItem->setHeight(self::isAudio($format)?0:180);
734 if ($purpose ==
"Standard")
739 $mob->setDescription($format);
756 if ($this->form_gui->checkInput())
759 include_once(
"./Services/News/classes/class.ilNewsItem.php");
761 $mob_id = $mc_item->getMobId();
764 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
770 if ($this->form_gui->getInput(
"delete_".$purpose))
772 $mob->removeMediaItem($purpose);
773 $log->write (
"Mcst: deleting purpose $purpose");
776 $media_item = $mob->getMediaItem($purpose);
777 $url_gui = $this->form_gui->getInput(
"url_".$purpose);
778 $file_gui = $this->form_gui->getInput(
"file_".$purpose);
780 if ($media_item == null)
782 if ($purpose !=
"Standard" &&
783 ($url_gui || $file_gui[
"size"]>0))
794 if ($purpose ==
"Standard")
797 $title = $this->form_gui->getInput(
"title") !=
"" ? $this->form_gui->getInput(
"title") : basename(
$file);
798 $description = $this->form_gui->getInput(
"description");
801 $mob->setDescription($description);
814 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
816 $mc_item->setUserId($ilUser->getId());
817 if (isset($duration))
819 $mc_item->setPlaytime($duration);
821 $mc_item->setTitle(
$title);
822 $mc_item->setContent($description);
823 if ($enable_internal_rss)
825 $mc_item->setVisibility($this->form_gui->getInput(
"visibility"));
829 $ilCtrl->redirect($this,
"listItems");
845 $ilTabs->activateTab(
"id_content");
847 if (!is_array(
$_POST[
"item_id"]))
853 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
857 $c_gui->setFormAction($ilCtrl->getFormAction($this,
"deleteItems"));
858 $c_gui->setHeaderText($lng->txt(
"info_delete_sure"));
859 $c_gui->setCancel($lng->txt(
"cancel"),
"listItems");
860 $c_gui->setConfirm($lng->txt(
"confirm"),
"deleteItems");
863 include_once(
"./Services/News/classes/class.ilNewsItem.php");
864 foreach(
$_POST[
"item_id"] as $item_id)
867 $c_gui->addItem(
"item_id[]", $item_id, $item->getTitle(),
871 $tpl->setContent($c_gui->getHTML());
884 foreach(
$_POST[
"item_id"] as $item_id)
890 $ilCtrl->redirect($this,
"listItems");
902 $mob = $mc_item->getMobId();
903 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
906 $purpose =
$_GET[
"purpose"];
907 $m_item = $mob->getMediaItem($purpose);
908 if ($m_item->getLocationType() !=
"Reference")
910 $file = $mob_dir.
"/".$m_item->getLocation();
917 $ilCtrl->redirect($this,
"listItems");
935 $mob = $mc_item->getMobId();
936 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
939 $m_item = $mob->getMediaItem(
"Standard");
940 $file = $mob_dir.
"/".$m_item->getLocation();
942 if ($duration !=
"00:00:00")
944 $mc_item->setPlaytime($duration);
953 $ilCtrl->redirect($this,
"listItems");
964 $this->ctrl->setCmd(
"showSummary");
965 $this->ctrl->setCmdClass(
"ilinfoscreengui");
974 global $ilAccess, $ilUser, $ilTabs;
976 $ilTabs->activateTab(
"id_info");
978 if (!$ilAccess->checkAccess(
"visible",
"", $this->object->getRefId()))
980 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
983 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
986 $info->enablePrivateNotes();
997 $this->lng->loadLanguageModule(
"meta");
998 $this->lng->loadLanguageModule(
"mcst");
999 $med_items = $this->
object->getItemsArray();
1000 $info->addSection($this->lng->txt(
"meta_general"));
1001 $info->addProperty($this->lng->txt(
"mcst_nr_items"),
1002 (int) count($med_items));
1004 if (count($med_items) > 0)
1006 $cur = current($med_items);
1014 $info->addProperty($this->lng->txt(
"mcst_last_submission"), $last);
1017 $this->ctrl->forwardCommand($info);
1026 global $ilAccess, $ilTabs,
$lng;
1029 if ($ilAccess->checkAccess(
'read',
"", $this->object->getRefId()))
1031 $ilTabs->addTab(
"id_content",
1032 $lng->txt(
"content"),
1033 $this->ctrl->getLinkTarget($this,
"listItems"));
1037 if ($ilAccess->checkAccess(
'visible',
"", $this->object->getRefId()))
1039 $ilTabs->addTab(
"id_info",
1040 $lng->txt(
"info_short"),
1041 $this->ctrl->getLinkTargetByClass(
"ilinfoscreengui",
"showSummary"));
1045 if ($ilAccess->checkAccess(
'write',
"", $this->object->getRefId()))
1047 $ilTabs->addTab(
"id_settings",
1048 $lng->txt(
"settings"),
1049 $this->ctrl->getLinkTarget($this,
"editSettings"));
1053 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
1055 $ilTabs->addTab(
"export",
1056 $lng->txt(
"export"),
1057 $this->ctrl->getLinkTargetByClass(
"ilexportgui",
""));
1061 if ($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId()))
1063 $ilTabs->addTab(
"id_permissions",
1064 $lng->txt(
"perm_settings"),
1065 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"));
1074 global
$tpl, $ilTabs;
1077 $ilTabs->activateTab(
"id_settings");
1080 $tpl->setContent($this->form_gui->getHtml());
1090 $lng->loadLanguageModule(
"mcst");
1092 include(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1094 $this->form_gui->setTitle($lng->txt(
"mcst_settings"));
1098 $tit->
setValue($this->object->getTitle());
1099 $tit->setRequired(
true);
1100 $this->form_gui->addItem($tit);
1104 $des->
setValue($this->object->getLongDescription());
1105 $this->form_gui->addItem($des);
1109 $online->
setChecked($this->object->getOnline());
1110 $this->form_gui->addItem($online);
1113 $downloadable =
new ilCheckboxInputGUI($lng->txt(
"mcst_downloadable"),
"downloadable");
1114 $downloadable->
setChecked($this->object->getDownloadable());
1115 $downloadable->setInfo($lng->txt(
"mcst_downloadable_info"));
1116 $this->form_gui->addItem($downloadable);
1119 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1122 if ($enable_internal_rss)
1124 $radio_group =
new ilRadioGroupInputGUI($lng->txt(
"news_default_visibility"),
"defaultaccess");
1125 $radio_option =
new ilRadioOption($lng->txt(
"news_visibility_users"),
"0");
1126 $radio_group->addOption($radio_option);
1127 $radio_option =
new ilRadioOption($lng->txt(
"news_visibility_public"),
"1");
1128 $radio_group->addOption($radio_option);
1129 $radio_group->
setInfo($lng->txt(
"news_news_item_visibility_info"));
1130 $radio_group->setRequired(
false);
1131 $radio_group->setValue($this->object->getDefaultAccess());
1132 #$ch->addSubItem($radio_group);
1133 $this->form_gui->addItem($radio_group);
1136 include_once(
"./Services/Block/classes/class.ilBlockSetting.php");
1139 $ch->
setInfo($lng->txt(
"news_public_feed_info"));
1140 $ch->setChecked($public_feed);
1141 $this->form_gui->addItem($ch);
1144 $incl_files =
new ilCheckboxInputGUI($lng->txt(
"mcst_incl_files_in_rss"),
"public_files");
1145 $incl_files->
setChecked($this->object->getPublicFiles());
1146 $incl_files->setInfo($lng->txt(
"mcst_incl_files_in_rss_info"));
1147 #$ch->addSubItem($incl_files);
1148 $this->form_gui->addItem($incl_files);
1152 $this->form_gui->addCommandButton(
"saveSettings", $lng->txt(
"save"));
1153 $this->form_gui->setFormAction($ilCtrl->getFormAction($this,
"saveSettings"));
1164 $ilTabs->activateTab(
"id_settings");
1167 if ($this->form_gui->checkInput())
1170 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1172 $this->
object->setTitle($this->form_gui->getInput(
"title"));
1173 $this->
object->setDescription($this->form_gui->getInput(
"description"));
1174 $this->
object->setOnline($this->form_gui->getInput(
"online"));
1175 $this->
object->setDownloadable($this->form_gui->getInput(
"downloadable"));
1177 if ($enable_internal_rss)
1179 $this->
object->setPublicFiles($this->form_gui->getInput(
"public_files"));
1180 $this->
object->setDefaultAccess($this->form_gui->getInput(
"defaultaccess"));
1182 $this->
object->update();
1184 if ($enable_internal_rss)
1186 include_once(
"./Services/Block/classes/class.ilBlockSetting.php");
1188 $this->form_gui->getInput(
"extra_feed"),
1189 0, $this->
object->getId());
1193 $ilCtrl->redirect($this,
"editSettings");
1197 $this->form_gui->setValuesByPost();
1198 $this->tpl->setContent($this->form_gui->getHTML());
1207 if (is_object($this->
object))
1209 $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this,
"listItems"),
"",
$_GET[
"ref_id"]);
1217 if ($ilAccess->checkAccess(
"read",
"", $a_target))
1219 $_GET[
"cmd"] =
"listItems";
1220 $_GET[
"ref_id"] = $a_target;
1221 $_GET[
"baseClass"] =
"ilmediacasthandlergui";
1222 $_GET[
"cmdClass"] =
"ilobjmediacastgui";
1223 include(
"ilias.php");
1226 else if ($ilAccess->checkAccess(
"visible",
"", $a_target))
1228 $_GET[
"cmd"] =
"infoScreen";
1229 $_GET[
"ref_id"] = $a_target;
1230 include(
"repository.php");
1233 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
1235 $_GET[
"cmd"] =
"frameset";
1236 $_GET[
"target"] =
"";
1237 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
1240 include(
"repository.php");
1244 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
1255 return strpos($extension,
"audio") !==
false;
1265 include_once(
"./Services/News/classes/class.ilNewsItem.php");
1268 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
1280 include_once(
"./Services/News/classes/class.ilNewsItem.php");
1283 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
1297 if (
$_POST[
"value_".$purpose])
1299 $_POST[
"label_value_".$purpose] =
$_POST[
"value_".$purpose];
1303 $this->form_gui->setValuesByPost();
1304 $tpl->setContent($this->form_gui->getHTML());