ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilContainerAccess Class Reference
+ Inheritance diagram for ilContainerAccess:
+ Collaboration diagram for ilContainerAccess:

Public Member Functions

 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.

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

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:65
global $DIC
Definition: shib_login.php:22
$results
+ Here is the call graph for this function:

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