5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
35 array(
"permission" =>
"read",
"cmd" =>
"showContent",
"lang_var" =>
"show",
37 array(
"permission" =>
"write",
"cmd" =>
"listItems",
"lang_var" =>
"edit_content"),
38 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings")
56 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
62 $a_user_id = $ilUser->getId();
70 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
85 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"online"));
90 switch ($a_permission)
95 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
113 $t_arr = explode(
"_", $a_target);
115 if ($t_arr[0] !=
"mcst" || ((
int) $t_arr[1]) <= 0)
120 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
136 $q =
"SELECT * FROM il_media_cast_data WHERE id = ".$ilDB->quote($a_id);
137 $mc_set = $ilDB->query($q);
140 return $mc_rec[
"is_online"];
152 $q =
"SELECT * FROM il_media_cast_data WHERE id = ".$ilDB->quote($a_id);
153 $mc_set = $ilDB->query($q);
156 return $mc_rec[
"public_files"];
166 require_once(
'Modules/MediaCast/classes/class.ilObjMediaCast.php');
167 require_once(
"./Services/News/classes/class.ilNewsItem.php");
168 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
171 $items = $obj->getItemsArray();
173 foreach ($items as $item)
177 $mobId = $news_item->getMobId();