ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
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
Definition:
AbstractBaseItem.php:33
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
Definition:
AbstractBaseItem.php:21
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\withParent
withParent(IdentificationInterface $identification)
Definition:
AbstractChildItem.php:36
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\$parent
IdentificationInterface $parent
Definition:
AbstractChildItem.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isChild
Interface isChild.
Definition:
isChild.php:29
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem\hasParent
hasParent()
Definition:
AbstractChildItem.php:47
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Definition:
isItem.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem
Class AbstractChildItem.
Definition:
AbstractChildItem.php:29
components
ILIAS
GlobalScreen
src
Scope
MetaBar
Factory
AbstractChildItem.php
Generated on Wed Sep 3 2025 23:03:08 for ILIAS by
1.8.13 (using
Doxyfile
)