ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilUsersGalleryGroup.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 {
22  protected bool $highlighted = false;
23  protected string $label = '';
24 
28  public function __construct(protected array $users)
29  {
30  }
31 
32  public function setHighlighted(bool $status): void
33  {
34  $this->highlighted = $status;
35  }
36 
37  public function isHighlighted(): bool
38  {
39  return $this->highlighted;
40  }
41 
42  public function setLabel(string $label): void
43  {
44  $this->label = $label;
45  }
46 
47  public function getLabel(): string
48  {
49  return $this->label;
50  }
51 
55  public function setItems(array $items): void
56  {
57  $this->users = $items;
58  }
59 
63  public function getItems(): array
64  {
65  return $this->users;
66  }
67 
68  public function count(): int
69  {
70  return count($this->users);
71  }
72 
73  public function current(): ilUsersGalleryUser
74  {
75  return current($this->users);
76  }
77 
78  public function next(): void
79  {
80  next($this->users);
81  }
82 
83  public function key(): int
84  {
85  return key($this->users);
86  }
87 
88  public function valid(): bool
89  {
90  return key($this->users) !== null;
91  }
92 
93  public function rewind(): void
94  {
95  reset($this->users);
96  }
97 }
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...
__construct(protected array $users)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...