ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
AbstractBaseCollector.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Collector
;
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
{
38
return
$this->has_been_collected
;
39
}
40
41
public
function
collectOnce
(): void
42
{
43
if
(!$this->
hasBeenCollected
()) {
44
$this->
collectStructure
();
45
$this->
prepareItemsForUIRepresentation
();
46
$this->
filterItemsByVisibilty
();
47
$this->
cleanupItemsForUIRepresentation
();
48
$this->
sortItemsForUIRepresentation
();
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
}
ILIAS\Awareness\User\Collector\AbstractBaseCollector\collectOnce
collectOnce()
Runs the Collection of all items from the providers.
Definition:
AbstractBaseCollector.php:41
ILIAS\Awareness\User\Collector\AbstractBaseCollector
Class AbstractBaseCollector.
Definition:
AbstractBaseCollector.php:27
ILIAS\Awareness\User\Collector\AbstractBaseCollector\filterItemsByVisibilty
filterItemsByVisibilty()
Definition:
AbstractBaseCollector.php:61
ILIAS\Awareness\User\Collector\Collector
Definition:
Collector.php:26
ILIAS\Awareness\User\Collector\AbstractBaseCollector\collectStructure
collectStructure()
Definition:
AbstractBaseCollector.php:53
ILIAS\Awareness\User\Collector\AbstractBaseCollector\prepareItemsForUIRepresentation
prepareItemsForUIRepresentation()
Definition:
AbstractBaseCollector.php:57
ILIAS\Awareness\User\Collector\AbstractBaseCollector\cleanupItemsForUIRepresentation
cleanupItemsForUIRepresentation()
Definition:
AbstractBaseCollector.php:65
ILIAS\Awareness\User\Collector\AbstractBaseCollector\sortItemsForUIRepresentation
sortItemsForUIRepresentation()
Definition:
AbstractBaseCollector.php:69
ILIAS\Awareness\User\Collector\AbstractBaseCollector\hasBeenCollected
hasBeenCollected()
Definition:
AbstractBaseCollector.php:36
ILIAS\Awareness\User\Collector\AbstractBaseCollector\setCollected
setCollected()
Definition:
AbstractBaseCollector.php:31
ILIAS\Awareness\User\Collector\AbstractBaseCollector\$has_been_collected
bool $has_been_collected
Definition:
AbstractBaseCollector.php:29
ILIAS\GlobalScreen\Collector
PhpIncompatibleReturnTypeInspection
Definition:
AbstractBaseCollector.php:21
components
ILIAS
GlobalScreen
src
Collector
AbstractBaseCollector.php
Generated on Sun Aug 31 2025 23:03:01 for ILIAS by
1.8.13 (using
Doxyfile
)