ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
isInterchangeableItemTrait.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
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 }