ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
AbstractBaseCollector.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 abstract class AbstractBaseCollector implements Collector
28 {
29  private bool $has_been_collected = false;
30 
31  private function setCollected(): void
32  {
33  $this->has_been_collected = true;
34  }
35 
36  public function hasBeenCollected(): bool
37  {
39  }
40 
41  public function collectOnce(): void
42  {
43  if (!$this->hasBeenCollected()) {
44  $this->collectStructure();
46  $this->filterItemsByVisibilty();
49  $this->setCollected();
50  }
51  }
52 
53  public function collectStructure(): void
54  {
55  }
56 
57  public function prepareItemsForUIRepresentation(): void
58  {
59  }
60 
61  public function filterItemsByVisibilty(): void
62  {
63  }
64 
65  public function cleanupItemsForUIRepresentation(): void
66  {
67  }
68 
69  public function sortItemsForUIRepresentation(): void
70  {
71  }
72 
73 }
collectOnce()
Runs the Collection of all items from the providers.
PhpIncompatibleReturnTypeInspection