ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 

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.

References $users.

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

Member Function Documentation

◆ count()

ilUsersGalleryGroup::count ( )

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

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

◆ 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...

◆ getItems()

ilUsersGalleryGroup::getItems ( )
Returns
ilUsersGalleryUser[]

Implements ilUsersGalleryUserCollection.

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

References $users.

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

◆ getLabel()

ilUsersGalleryGroup::getLabel ( )

Implements ilUsersGalleryUserCollection.

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

References $label.

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

◆ isHighlighted()

ilUsersGalleryGroup::isHighlighted ( )

Implements ilUsersGalleryUserCollection.

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

References $highlighted.

Referenced by ilUsersGalleryGUI\populateTemplate().

40  : bool
41  {
42  return $this->highlighted;
43  }
+ Here is the caller graph for this function:

◆ key()

ilUsersGalleryGroup::key ( )

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

Referenced by valid().

87  {
88  return key($this->users);
89  }
+ 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  }

◆ 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.

References $label.

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

◆ valid()

ilUsersGalleryGroup::valid ( )

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

References key().

91  : bool
92  {
93  return key($this->users) !== null;
94  }
+ 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: