ILIAS  release_8 Revision v8.24
class.ilUsersGalleryGroup.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21{
23 protected array $users = [];
24 protected bool $highlighted = false;
25 protected string $label = '';
26
30 public function __construct(array $users)
31 {
32 $this->users = $users;
33 }
34
35 public function setHighlighted(bool $status): void
36 {
37 $this->highlighted = $status;
38 }
39
40 public function isHighlighted(): bool
41 {
42 return $this->highlighted;
43 }
44
45 public function setLabel(string $label): void
46 {
47 $this->label = $label;
48 }
49
50 public function getLabel(): string
51 {
52 return $this->label;
53 }
54
58 public function setItems(array $items): void
59 {
60 $this->users = $items;
61 }
62
66 public function getItems(): array
67 {
68 return $this->users;
69 }
70
71 public function count(): int
72 {
73 return count($this->users);
74 }
75
76 public function current(): ilUsersGalleryUser
77 {
78 return current($this->users);
79 }
80
81 public function next(): void
82 {
83 next($this->users);
84 }
85
86 public function key()
87 {
88 return key($this->users);
89 }
90
91 public function valid(): bool
92 {
93 return key($this->users) !== null;
94 }
95
96 public function rewind(): void
97 {
98 reset($this->users);
99 }
100}
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...