ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
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 Tue Sep 2 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)