ILIAS  release_8 Revision v8.24
AbstractBaseCollector.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
26abstract class AbstractBaseCollector implements Collector
27{
28 private bool $has_been_collected = false;
29
30 private function setCollected(): void
31 {
32 $this->has_been_collected = true;
33 }
34
35 public function hasBeenCollected(): bool
36 {
38 }
39
40 public function collectOnce(): void
41 {
42 if (!$this->hasBeenCollected()) {
43 $this->collectStructure();
44 $this->prepareItemsForUIRepresentation();
45 $this->filterItemsByVisibilty();
46 $this->cleanupItemsForUIRepresentation();
47 $this->sortItemsForUIRepresentation();
48 $this->setCollected();
49 }
50 }
51}
collectOnce()
Runs the Collection of all items from the providers.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...