ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
14
class
ilContainerAccess
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
}
php
An exception for terminatinating execution or to throw for unit testing.
ilContainerAccess
Class ilContainerAccess.
Definition:
class.ilContainerAccess.php:15
ilContainerAccess\canBeDelivered
canBeDelivered(ilWACPath $ilWACPath)
Definition:
class.ilContainerAccess.php:21
ilObject2\_getAllReferences
static _getAllReferences($a_id)
get all reference ids of object
Definition:
class.ilObject2.php:251
ilWACPath
Class ilWACPath.
Definition:
class.ilWACPath.php:11
ilWACPath\getPath
getPath()
Definition:
class.ilWACPath.php:547
$results
$results
Definition:
svg-scanner.php:47
Services
Container
classes
class.ilContainerAccess.php
Generated on Tue Sep 30 2025 19:01:11 for ILIAS by
1.9.4 (using
Doxyfile
)