5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
46 $this->
user = $DIC->user();
47 $this->lng = $DIC->language();
48 $this->rbacsystem = $DIC->rbac()->system();
49 $this->access = $DIC->access();
68 array(
"permission" =>
"read",
"cmd" =>
"showContent",
"lang_var" =>
"show",
70 array(
"permission" =>
"write",
"cmd" =>
"listItems",
"lang_var" =>
"edit_content"),
71 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings")
89 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
96 if ($a_user_id ==
"") {
104 && !
$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)) {
120 switch ($a_permission) {
124 (!
$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id))) {
141 $ilAccess = $DIC->access();
143 $t_arr = explode(
"_", $a_target);
145 if ($t_arr[0] !=
"mcst" || ((
int) $t_arr[1]) <= 0) {
149 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
164 $ilDB = $DIC->database();
166 $q =
"SELECT * FROM il_media_cast_data WHERE id = " .
$ilDB->quote($a_id);
167 $mc_set =
$ilDB->query($q);
170 return $mc_rec[
"is_online"];
182 $ilDB = $DIC->database();
184 $q =
"SELECT * FROM il_media_cast_data WHERE id = " .
$ilDB->quote($a_id);
185 $mc_set =
$ilDB->query($q);
188 return $mc_rec[
"public_files"];
198 require_once(
'Modules/MediaCast/classes/class.ilObjMediaCast.php');
199 require_once(
"./Services/News/classes/class.ilNewsItem.php");
200 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
203 $items = $obj->getItemsArray();
205 foreach ($items as $item) {
208 $mobId = $news_item->getMobId();
const IL_NO_OBJECT_ACCESS
static dirsize($directory)
get size of a directory or a file.