ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
isInterchangeableItemTrait.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28trait 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}