ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
isInterchangeableItemTrait.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Factory
;
22
28
trait
isInterchangeableItemTrait
29
{
30
public
function
hasChanged(): bool
31
{
32
$serialized_parent = $this->getParent()->serialize();
33
if
($this instanceof isTopItem) {
34
return
$serialized_parent !==
''
;
35
}
36
if
($this instanceof isChild) {
37
return
$serialized_parent ===
''
;
38
}
39
return
false
;
40
}
41
}
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory
Definition:
AbstractBaseItem.php:21
components
ILIAS
GlobalScreen
src
Scope
MainMenu
Factory
isInterchangeableItemTrait.php
Generated on Mon Sep 1 2025 23:03:11 for ILIAS by
1.8.13 (using
Doxyfile
)