24 include_once(
"classes/class.ilObjectAccess.php");
54 array(
"permission" =>
"read",
"cmd" =>
"listItems",
"lang_var" =>
"show",
56 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"edit")
74 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
76 global $ilUser,
$lng, $rbacsystem, $ilAccess;
80 $a_user_id = $ilUser->getId();
88 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
103 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"online"));
108 switch ($a_permission)
113 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
131 $t_arr = explode(
"_", $a_target);
133 if ($t_arr[0] !=
"mcst" || ((
int) $t_arr[1]) <= 0)
138 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
154 $q =
"SELECT * FROM il_media_cast_data WHERE id = ".$ilDB->quote($a_id);
155 $mc_set = $ilDB->query($q);
158 return $mc_rec[
"is_online"];
170 $q =
"SELECT * FROM il_media_cast_data WHERE id = ".$ilDB->quote($a_id);
171 $mc_set = $ilDB->query($q);
174 return $mc_rec[
"public_files"];
184 require_once(
'Modules/MediaCast/classes/class.ilObjMediaCast.php');
185 require_once(
"./Services/News/classes/class.ilNewsItem.php");
186 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
189 $items = $obj->getItemsArray();
191 foreach ($items as $item)
195 $mobId = $news_item->getMobId();