ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
AbstractChildItem.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MetaBar\Factory
;
22
23
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
24
29
abstract
class
AbstractChildItem
extends
AbstractBaseItem
implements
isItem
,
isChild
30
{
31
protected
?
IdentificationInterface
$parent
= null;
32
36
public
function
withParent
(
IdentificationInterface
$identification):
isItem
37
{
38
$clone = clone $this;
39
$clone->parent = $identification;
40
41
return
$clone;
42
}
43
47
public
function
hasParent
(): bool
48
{
49
return
($this->parent instanceof
IdentificationInterface
);
50
}
51
55
public
function
getParent
():
IdentificationInterface
56
{
57
return
$this->parent
;
58
}
59
63
public
function
overrideParent
(
IdentificationInterface
$identification):
isChild
64
{
65
$this->parent = $identification;
66
67
return
$this;
68
}
69
}
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\overrideParent
overrideParent(IdentificationInterface $identification)
Definition:
AbstractChildItem.php:63
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem
Class AbstractBaseItem.
Definition:
AbstractBaseItem.php:32
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\getParent
getParent()
Definition:
AbstractChildItem.php:55
ILIAS\GlobalScreen\Scope\MetaBar\Factory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AbstractBaseItem.php:20
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\withParent
withParent(IdentificationInterface $identification)
Definition:
AbstractChildItem.php:36
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\$parent
IdentificationInterface $parent
Definition:
AbstractChildItem.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isChild
Interface isChild.
Definition:
isChild.php:28
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\hasParent
hasParent()
Definition:
AbstractChildItem.php:47
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Class isItem.
Definition:
isItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem
Class AbstractChildItem.
Definition:
AbstractChildItem.php:29
src
GlobalScreen
Scope
MetaBar
Factory
AbstractChildItem.php
Generated on Tue Apr 22 2025 22:02:33 for ILIAS by
1.8.13 (using
Doxyfile
)