ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.Collection.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\Awareness\User
;
20
25
class
Collection
implements
\Countable
26
{
28
protected
array
$users
= array();
29
33
public
function
addUser
(
int
$a_id): void
34
{
35
$this->users[$a_id] = $a_id;
36
}
37
41
public
function
removeUser
(
int
$a_id): void
42
{
43
if
(isset($this->users[$a_id])) {
44
unset($this->users[$a_id]);
45
}
46
}
47
51
public
function
getUsers
(): array
52
{
53
return
$this->users
;
54
}
55
56
public
function
count
():
int
57
{
58
return
count
($this->users);
59
}
60
}
ceLTIc::LTI\User\Collection
Represents a set of collected users.
Definition:
class.Collection.php:25
ceLTIc::LTI\User\Collection\$users
array $users
Definition:
class.Collection.php:28
ceLTIc::LTI\User\Collection\removeUser
removeUser(int $a_id)
Definition:
class.Collection.php:41
ceLTIc::LTI\User\Collection\getUsers
getUsers()
Definition:
class.Collection.php:51
ceLTIc::LTI\User\Collection\addUser
addUser(int $a_id)
Definition:
class.Collection.php:33
ILIAS\Awareness\User
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.Collection.php:19
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ceLTIc::LTI\User\Collection\count
count()
Definition:
class.Collection.php:56
components
ILIAS
Awareness
User
class.Collection.php
Generated on Sun Aug 31 2025 23:02:17 for ILIAS by
1.8.13 (using
Doxyfile
)