ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilContainerAccess Class Reference

Class ilContainerAccess. More...

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

Public Member Functions

 canBeDelivered (ilWACPath $ilWACPath)
 

Detailed Description

Member Function Documentation

◆ canBeDelivered()

ilContainerAccess::canBeDelivered ( ilWACPath  $ilWACPath)
Parameters
ilWACPath$ilWACPath
Returns
bool

Implements ilWACCheckingClass.

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

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

22  {
23  global $DIC;
24 
25  $access = $DIC->access();
26 
27  preg_match("/\\/obj_([\\d]*)\\//uism", $ilWACPath->getPath(), $results);
28  foreach (ilObject2::_getAllReferences($results[1]) as $ref_id) {
29  if ($access->checkAccess('visible', '', $ref_id) || $access->checkAccess('read', '', $ref_id)) {
30  return true;
31  }
32  }
33 
34  return false;
35  }
global $DIC
Definition: saml.php:7
static _getAllReferences($a_id)
$results
Definition: svg-scanner.php:47
+ Here is the call graph for this function:

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