ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
TopParentItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 
33 class TopParentItem extends AbstractParentItem implements
34  isTopItem,
35  hasTitle,
36  hasSymbol,
38 {
39  use hasSymbolTrait;
40 
41  protected string $title = '';
42 
43  protected bool $supports_async_loading = false;
44 
49  public function withTitle(string $title): hasTitle
50  {
51  $clone = clone($this);
52  $clone->title = $title;
53 
54  return $clone;
55  }
56 
60  public function getTitle(): string
61  {
62  return $this->title;
63  }
64 
66  {
67  $clone = clone($this);
68  $clone->supports_async_loading = $supported;
69 
70  return $clone;
71  }
72 
73  public function supportsAsynchronousLoading(): bool
74  {
76  }
77 }
Interface supportsAsynchronousLoading Types, which implement this interface, can load their content a...
trait hasSymbolTrait
Trait hasSymbolTrait.