ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
AbstractResourceStakeholder.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
3
namespace
ILIAS\ResourceStorage\Stakeholder
;
4
5
use
ILIAS\ResourceStorage\Identification\ResourceIdentification
;
6
11
abstract
class
AbstractResourceStakeholder
implements
ResourceStakeholder
12
{
13
17
private
$provider_name_cache
=
''
;
18
22
public
function
getFullyQualifiedClassName
() : string
23
{
24
return
static::class;
25
}
26
30
public
function
isResourceInUse
(
ResourceIdentification
$identification) : bool
31
{
32
return
false
;
33
}
34
38
public
function
resourceHasBeenDeleted
(
ResourceIdentification
$identification) : bool
39
{
40
return
true
;
41
}
42
46
public
function
getOwnerOfResource
(
ResourceIdentification
$identification) : int
47
{
48
return
6;
49
}
50
54
public
function
getConsumerNameForPresentation
() : string
55
{
56
if
($this->provider_name_cache !==
''
&& is_string($this->provider_name_cache)) {
57
return
$this->provider_name_cache
;
58
}
59
$reflector = new \ReflectionClass($this);
60
61
$re =
"/.*[\\\|\\/](?P<provider>(Services|Modules)[\\\|\\/].*)[\\\|\\/]classes/m"
;
62
63
preg_match($re, str_replace(
"\\"
,
"/"
, $reflector->getFileName()), $matches);
64
65
$this->provider_name_cache = isset($matches[1]) ? is_string($matches[1]) ? $matches[1] : self::class : self::class;
66
67
return
$this->provider_name_cache
;
68
}
69
}
ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder\$provider_name_cache
$provider_name_cache
Definition:
AbstractResourceStakeholder.php:17
ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder\isResourceInUse
isResourceInUse(ResourceIdentification $identification)
Definition:
AbstractResourceStakeholder.php:30
ILIAS\ResourceStorage\Stakeholder
ResourceIdentification
ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder\getFullyQualifiedClassName
getFullyQualifiedClassName()
Definition:
AbstractResourceStakeholder.php:22
ILIAS\ResourceStorage\Identification\ResourceIdentification
Interface Identification.
Definition:
ResourceIdentification.php:14
ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder
Class AbstractResourceStakeholder.
Definition:
AbstractResourceStakeholder.php:11
ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder\getConsumerNameForPresentation
getConsumerNameForPresentation()
Definition:
AbstractResourceStakeholder.php:54
ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder
Interface ResourceStakeholder.
Definition:
ResourceStakeholder.php:11
ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder\resourceHasBeenDeleted
resourceHasBeenDeleted(ResourceIdentification $identification)
Definition:
AbstractResourceStakeholder.php:38
ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder\getOwnerOfResource
getOwnerOfResource(ResourceIdentification $identification)
Definition:
AbstractResourceStakeholder.php:46
src
ResourceStorage
Stakeholder
AbstractResourceStakeholder.php
Generated on Sun Apr 6 2025 21:01:48 for ILIAS by
1.8.13 (using
Doxyfile
)