ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
s
t
w
+
Functions
_
a
b
c
f
g
h
i
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
AbstractChildItem.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Factory
;
2
3
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
4
use
ILIAS\GlobalScreen\Identification\NullIdentification
;
5
10
abstract
class
AbstractChildItem
extends
AbstractBaseItem
11
{
12
16
protected
$parent
;
17
21
public
function
withParent
(
IdentificationInterface
$identification) :
isItem
22
{
23
$clone = clone($this);
24
$clone->parent = $identification;
25
26
return
$clone;
27
}
28
32
public
function
hasParent
() : bool
33
{
34
return
($this->parent instanceof
IdentificationInterface
);
35
}
36
40
public
function
getParent
() :
IdentificationInterface
41
{
42
return
$this->parent instanceof
IdentificationInterface
? $this->parent :
new
NullIdentification
();
43
}
44
48
public
function
overrideParent
(
IdentificationInterface
$identification) :
isChild
49
{
50
$this->parent = $identification;
51
52
return
$this;
53
}
54
}
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:8
ILIAS\GlobalScreen\Identification\NullIdentification
Class NullIdentification.
Definition:
NullIdentification.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractBaseItem
Class AbstractBaseItem.
Definition:
AbstractBaseItem.php:13
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem
Interface IFactory.
Definition:
isItem.php:11
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isChild
Interface isChild.
Definition:
isChild.php:9
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem\$parent
$parent
Definition:
AbstractChildItem.php:16
NullIdentification
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem\getParent
getParent()
Definition:
AbstractChildItem.php:40
IdentificationInterface
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem\withParent
withParent(IdentificationInterface $identification)
Definition:
AbstractChildItem.php:21
ILIAS\GlobalScreen\Scope\MainMenu\Factory
Definition:
AbstractBaseItem.php:1
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem\hasParent
hasParent()
Definition:
AbstractChildItem.php:32
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
Class AbstractBaseItem.
Definition:
AbstractChildItem.php:10
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem\overrideParent
overrideParent(IdentificationInterface $identification)
Definition:
AbstractChildItem.php:48
src
GlobalScreen
Scope
MainMenu
Factory
AbstractChildItem.php
Generated on Sat Apr 5 2025 20:01:38 for ILIAS by
1.8.13 (using
Doxyfile
)