ILIAS  release_8 Revision v8.24
ilUsersGalleryGroup Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilUsersGalleryGroup:
+ Collaboration diagram for ilUsersGalleryGroup:

Public Member Functions

 __construct (array $users)
 
 setHighlighted (bool $status)
 
 isHighlighted ()
 
 setLabel (string $label)
 
 getLabel ()
 
 setItems (array $items)
 
 getItems ()
 
 count ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 setHighlighted (bool $status)
 
 isHighlighted ()
 
 getLabel ()
 
 setLabel (string $label)
 
 setItems (array $items)
 
 getItems ()
 

Protected Attributes

array $users = []
 
bool $highlighted = false
 
string $label = ''
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 20 of file class.ilUsersGalleryGroup.php.

Constructor & Destructor Documentation

◆ __construct()

ilUsersGalleryGroup::__construct ( array  $users)
Parameters
ilUsersGalleryUser[]$users

Definition at line 30 of file class.ilUsersGalleryGroup.php.

31 {
32 $this->users = $users;
33 }

References $users.

Member Function Documentation

◆ count()

ilUsersGalleryGroup::count ( )

Definition at line 71 of file class.ilUsersGalleryGroup.php.

71 : int
72 {
73 return count($this->users);
74 }

References count().

Referenced by count().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ current()

ilUsersGalleryGroup::current ( )

Definition at line 76 of file class.ilUsersGalleryGroup.php.

77 {
78 return current($this->users);
79 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References current().

Referenced by current().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getItems()

ilUsersGalleryGroup::getItems ( )
Returns
ilUsersGalleryUser[]

Implements ilUsersGalleryUserCollection.

Definition at line 66 of file class.ilUsersGalleryGroup.php.

66 : array
67 {
68 return $this->users;
69 }

References $users.

◆ getLabel()

ilUsersGalleryGroup::getLabel ( )

Implements ilUsersGalleryUserCollection.

Definition at line 50 of file class.ilUsersGalleryGroup.php.

50 : string
51 {
52 return $this->label;
53 }

References $label.

Referenced by ilUsersGalleryGUI\populateTemplate().

+ Here is the caller graph for this function:

◆ isHighlighted()

ilUsersGalleryGroup::isHighlighted ( )

Implements ilUsersGalleryUserCollection.

Definition at line 40 of file class.ilUsersGalleryGroup.php.

40 : bool
41 {
42 return $this->highlighted;
43 }

References $highlighted.

Referenced by ilUsersGalleryGUI\populateTemplate().

+ Here is the caller graph for this function:

◆ key()

ilUsersGalleryGroup::key ( )

Definition at line 86 of file class.ilUsersGalleryGroup.php.

87 {
88 return key($this->users);
89 }

References key().

Referenced by key(), and valid().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ next()

ilUsersGalleryGroup::next ( )

Definition at line 81 of file class.ilUsersGalleryGroup.php.

81 : void
82 {
83 next($this->users);
84 }

References next().

Referenced by next().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rewind()

ilUsersGalleryGroup::rewind ( )

Definition at line 96 of file class.ilUsersGalleryGroup.php.

96 : void
97 {
98 reset($this->users);
99 }

◆ setHighlighted()

ilUsersGalleryGroup::setHighlighted ( bool  $status)

Implements ilUsersGalleryUserCollection.

Definition at line 35 of file class.ilUsersGalleryGroup.php.

35 : void
36 {
37 $this->highlighted = $status;
38 }

◆ setItems()

ilUsersGalleryGroup::setItems ( array  $items)
Parameters
ilUsersGalleryUser[]$items

Implements ilUsersGalleryUserCollection.

Definition at line 58 of file class.ilUsersGalleryGroup.php.

58 : void
59 {
60 $this->users = $items;
61 }

◆ setLabel()

ilUsersGalleryGroup::setLabel ( string  $label)

Implements ilUsersGalleryUserCollection.

Definition at line 45 of file class.ilUsersGalleryGroup.php.

45 : void
46 {
47 $this->label = $label;
48 }

References $label.

◆ valid()

ilUsersGalleryGroup::valid ( )

Definition at line 91 of file class.ilUsersGalleryGroup.php.

91 : bool
92 {
93 return key($this->users) !== null;
94 }

References key().

+ Here is the call graph for this function:

Field Documentation

◆ $highlighted

bool ilUsersGalleryGroup::$highlighted = false
protected

Definition at line 24 of file class.ilUsersGalleryGroup.php.

Referenced by isHighlighted().

◆ $label

string ilUsersGalleryGroup::$label = ''
protected

Definition at line 25 of file class.ilUsersGalleryGroup.php.

Referenced by getLabel(), and setLabel().

◆ $users

array ilUsersGalleryGroup::$users = []
protected

Definition at line 23 of file class.ilUsersGalleryGroup.php.

Referenced by __construct(), and getItems().


The documentation for this class was generated from the following file: