ILIAS  release_8 Revision v8.23
isInterchangeableItemTrait.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
21 
23 
30 {
31  public function hasChanged(): bool
32  {
33  $serialized_parent = $this->getParent()->serialize();
34  if ($this instanceof isTopItem) {
35  return $serialized_parent !== '';
36  } elseif ($this instanceof isChild) {
37  return $serialized_parent === '';
38  }
39  return false;
40  }
41 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...