ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilContainerAccess.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 
15 {
21  public function canBeDelivered(ilWACPath $ilWACPath)
22  {
23  global $ilAccess;
24 
25  preg_match("/\\/obj_([\\d]*)\\//uism", $ilWACPath->getPath(), $results);
26  foreach (ilObject2::_getAllReferences($results[1]) as $ref_id) {
27  if ($ilAccess->checkAccess('visible', '', $ref_id)) {
28  return true;
29  }
30  }
31 
32  return false;
33  }
34 }
Class ilContainerAccess.
canBeDelivered(ilWACPath $ilWACPath)
Class ilWACPath.
static _getAllReferences($a_id)
$results
Definition: svg-scanner.php:47