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