ILIAS  release_8 Revision v8.24
ilContainerAccess Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilContainerAccess:
+ Collaboration diagram for ilContainerAccess:

Public Member Functions

 canBeDelivered (ilWACPath $ilWACPath)
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilContainerAccess.php.

Member Function Documentation

◆ canBeDelivered()

ilContainerAccess::canBeDelivered ( ilWACPath  $ilWACPath)

Implements ilWACCheckingClass.

Definition at line 26 of file class.ilContainerAccess.php.

26 : bool
27 {
28 global $DIC;
29
30 $access = $DIC->access();
31
32 preg_match("/\\/obj_([\\d]*)\\//uim", $ilWACPath->getPath(), $results);
33 foreach (ilObject2::_getAllReferences((int) $results[1]) as $ref_id) {
34 if ($access->checkAccess('visible', '', $ref_id) || $access->checkAccess('read', '', $ref_id)) {
35 return true;
36 }
37 }
38
39 return false;
40 }
static _getAllReferences(int $id)
get all reference ids for object ID
global $DIC
Definition: feed.php:28
$ref_id
Definition: ltiauth.php:67
$results

References $DIC, $ref_id, $results, ilObject\_getAllReferences(), and ilWACPath\getPath().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: