ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilContainerAccess Class Reference
+ Inheritance diagram for ilContainerAccess:
+ Collaboration diagram for ilContainerAccess:

Public Member Functions

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

Detailed Description

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
$ref_id
Definition: ltiauth.php:66
$results
global $DIC
Definition: shib_login.php:26

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: