ILIAS  release_8 Revision v8.24
class.ilUsersGallerySortedUserGroup.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22{
25
27 {
28 $this->collection = $collection;
29 $this->sorter = $sorter;
30 }
31
32 public function setItems(array $items): void // Missing array type.
33 {
34 $this->collection->setItems($items);
35 }
36
37 public function getItems(): array // Missing array type.
38 {
39 return $this->collection->getItems();
40 }
41
42 public function current(): ilUsersGalleryUser
43 {
44 return $this->collection->current();
45 }
46
47 public function next(): void
48 {
49 $this->collection->next();
50 }
51
52 public function key()
53 {
54 return $this->collection->key();
55 }
56
57 public function valid(): bool
58 {
59 return $this->collection->valid();
60 }
61
62 public function rewind(): void
63 {
64 $this->collection->setItems($this->sorter->sort($this->collection->getItems()));
65 $this->collection->rewind();
66 }
67
68 public function count(): int
69 {
70 return $this->collection->count();
71 }
72
73 public function setHighlighted(bool $status): void
74 {
75 $this->collection->setHighlighted($status);
76 }
77
78 public function isHighlighted(): bool
79 {
80 return $this->collection->isHighlighted();
81 }
82
83 public function setLabel(string $label): void
84 {
85 $this->collection->setLabel($label);
86 }
87
88 public function getLabel(): string
89 {
90 return $this->collection->getLabel();
91 }
92}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilUsersGalleryUserCollectionSorter $sorter
__construct(ilUsersGalleryUserCollection $collection, ilUsersGalleryUserCollectionSorter $sorter)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...