2 require_once(
'./Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php');
3 require_once(
'./Services/MediaObjects/classes/class.ilObjMediaObject.php');
36 $this->obj_data_cache = $DIC[
"ilObjDataCache"];
37 $this->
user = $DIC->user();
38 $this->access = $DIC->access();
49 preg_match(
"/.\\/data\\/.*\\/mm_([0-9]*)\\/.*/ui", $ilWACPath->
getPath(), $matches);
50 $obj_id = $matches[1];
67 switch ($usage[
"type"]) {
72 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
74 foreach ($usages2 as $usage2) {
76 if ($this->checkAccessMobUsage($usage2, $oid2)) {
83 if ($this->checkAccessMobUsage($usage, $oid)) {
100 protected function checkAccessMobUsage($usage, $oid)
109 switch ($usage[
'type']) {
118 include_once(
"./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php");
119 include_once(
"./Services/News/classes/class.ilNewsItem.php");
132 if ($ilObjDataCache->lookupType($oid) ==
'usr' && $oid == $user_id) {
139 $draft_id = $usage[
'id'];
141 include_once
'Modules/Forum/classes/class.ilForumPostDraft.php';
143 if ($user_id == $oDraft->getPostAuthorId()) {
148 $history_id = $usage[
'id'];
149 include_once
'Modules/Forum/classes/class.ilForumDraftsHistory.php';
150 include_once
'Modules/Forum/classes/class.ilForumPostDraft.php';
154 if ($user_id == $oDraft->getPostAuthorId()) {
202 include_once
'Services/Imprint/classes/class.ilImprint.php';
237 foreach ($ref_ids as $ref_id) {
239 if ($ilAccess->checkAccessOfUser($user_id,
"read",
"view", $ref_id, $obj_type, $obj_id)) {
268 if ($obj_type ==
'qpl') {
271 include_once(
'./Modules/Test/classes/class.ilObjTestAccess.php');
273 foreach ($tests as $test_id) {
300 include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
301 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
304 include_once(
'./Services/Link/classes/class.ilInternalLink.php');
308 foreach ($sources as $src) {
309 switch ($src[
'type']) {
313 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
349 include_once
"Modules/Portfolio/classes/class.ilPortfolioAccessHandler.php";
351 if ($access_handler->checkAccessOfUser(
$ilUser->getId(),
"read",
"view", $obj_id,
"prtf")) {
370 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
372 $node_id = $tree->lookupNodeId($obj_id);
376 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
379 if ($access_handler->checkAccessOfUser($tree,
$ilUser->getId(),
"read",
"view", $node_id,
"blog")) {
396 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 newInstanceByDraftId($draft_id)
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.