ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ 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
implements
\ilWACCheckingClass
15
{
21
public
function
canBeDelivered
(
ilWACPath
$ilWACPath)
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
}
36
}
$DIC
global $DIC
Definition:
saml.php:7
ilContainerAccess
Class ilContainerAccess.
Definition:
class.ilContainerAccess.php:14
ilContainerAccess\canBeDelivered
canBeDelivered(ilWACPath $ilWACPath)
Definition:
class.ilContainerAccess.php:21
ilWACPath
Class ilWACPath.
Definition:
class.ilWACPath.php:10
ilWACPath\getPath
getPath()
Definition:
class.ilWACPath.php:547
ilObject2\_getAllReferences
static _getAllReferences($a_id)
Definition:
class.ilObject2.php:251
ilWACCheckingClass
Class ilWACCheckingClass.
Definition:
interface.ilWACCheckingClass.php:12
$results
$results
Definition:
svg-scanner.php:47
php
Services
Container
classes
class.ilContainerAccess.php
Generated on Thu Jan 16 2025 19:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)