2 require_once(
'./Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php');
3 require_once(
'./Services/MediaObjects/classes/class.ilObjMediaObject.php');
19 preg_match(
"/.\\/data\\/.*\\/mm_([0-9]*)\\/.*/ui", $ilWACPath->
getPath(), $matches);
20 $obj_id = $matches[1];
36 switch ($usage[
"type"]) {
41 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
43 foreach ($usages2 as $usage2) {
45 if ($this->checkAccessMobUsage($usage2, $oid2)) {
52 if ($this->checkAccessMobUsage($usage, $oid)) {
69 protected function checkAccessMobUsage($usage, $oid) {
73 global $ilObjDataCache,
$ilUser;
74 $user_id = $ilUser->getId();
76 switch ($usage[
'type']) {
85 include_once(
"./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php");
86 include_once(
"./Services/News/classes/class.ilNewsItem.php");
99 if ($ilObjDataCache->lookupType($oid) ==
'usr' && $oid == $user_id) {
106 $draft_id = $usage[
'id'];
108 include_once
'Modules/Forum/classes/class.ilForumPostDraft.php';
109 $oDraft = ilForumPostDraft::newInstanceByDraftId($draft_id);
110 if($user_id == $oDraft->getPostAuthorId())
116 $history_id = $usage[
'id'];
117 include_once
'Modules/Forum/classes/class.ilForumDraftsHistory.php';
118 include_once
'Modules/Forum/classes/class.ilForumPostDraft.php';
121 $oDraft = ilForumPostDraft::newInstanceByDraftId($oHistoryDraft->getDraftId());
122 if($user_id == $oDraft->getPostAuthorId())
171 include_once
'Services/Imprint/classes/class.ilImprint.php';
198 $user_id = $ilUser->getId();
205 foreach ($ref_ids as
$ref_id) {
207 if ($ilAccess->checkAccessOfUser($user_id,
"read",
"view", $ref_id, $obj_type, $obj_id)) {
235 if ($obj_type ==
'qpl') {
238 include_once(
'./Modules/Test/classes/class.ilObjTestAccess.php');
240 foreach ($tests as $test_id) {
266 include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
267 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
270 include_once(
'./Services/Link/classes/class.ilInternalLink.php');
274 foreach ($sources as $src) {
275 switch ($src[
'type']) {
279 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
314 include_once
"Modules/Portfolio/classes/class.ilPortfolioAccessHandler.php";
316 if ($access_handler->checkAccessOfUser($ilUser->getId(),
"read",
"view", $obj_id,
"prtf")) {
334 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
336 $node_id = $tree->lookupNodeId($obj_id);
340 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
343 if ($access_handler->checkAccessOfUser($tree, $ilUser->getId(),
"read",
"view", $node_id,
"blog")) {
359 include_once
"Modules/Course/classes/class.ilCourseObjective.php";
static _lookupContainerIdByObjectiveId($a_objective_id)
Get container of object.
Access handler for personal workspace.
static _lookupVisibility($a_news_id)
Lookup News Visibility.
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
static _getAllReferences($a_id)
get all reference ids of object
Tree handler for personal workspace.
Class ilForumDraftHistory.
static _lookupTermId($a_def_id)
Looks up term id for a definition id.
static _getRandomTestsForQuestionPool($qpl_id)
Get all tests using a question pool for random selection.
static _getSourcesOfTarget($a_target_type, $a_target_id, $a_target_inst)
get all sources of a link target
Class ilWACCheckingClass.
static lookupUsages($a_id, $a_incl_hist=true)
Lookup usages of media object.
static _lookupType($a_id, $a_reference=false)
lookup object type
Access handler for portfolio.