ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilUsersGalleryGroup.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  protected bool $highlighted = false;
24  protected string $label = '';
25 
29  public function __construct(protected array $users)
30  {
31  }
32 
33  public function setHighlighted(bool $status): void
34  {
35  $this->highlighted = $status;
36  }
37 
38  public function isHighlighted(): bool
39  {
40  return $this->highlighted;
41  }
42 
43  public function setLabel(string $label): void
44  {
45  $this->label = $label;
46  }
47 
48  public function getLabel(): string
49  {
50  return $this->label;
51  }
52 
56  public function setItems(array $items): void
57  {
58  $this->users = $items;
59  }
60 
64  public function getItems(): array
65  {
66  return $this->users;
67  }
68 
69  public function count(): int
70  {
71  return count($this->users);
72  }
73 
74  public function current(): ilUsersGalleryUser
75  {
76  return current($this->users);
77  }
78 
79  public function next(): void
80  {
81  next($this->users);
82  }
83 
84  public function key(): int
85  {
86  return key($this->users);
87  }
88 
89  public function valid(): bool
90  {
91  return key($this->users) !== null;
92  }
93 
94  public function rewind(): void
95  {
96  reset($this->users);
97  }
98 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(protected array $users)