ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AbstractBaseCollector.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27abstract 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();
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.
@noinspection PhpIncompatibleReturnTypeInspection