ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilUsersGalleryGroup Class Reference

Class ilUsersGalleryGroup. More...

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

Public Member Functions

 __construct (array $users)
 ilUsersGalleryGroupImpl constructor. More...
 
 setHighlighted ($status)
 Set whether or not this group is highlighted.
Parameters
boolean$status
More...
 
 isHighlighted ()
 Returns whether or not it is a highlighted group.
Returns
boolean
More...
 
 setLabel ($label)
 
Parameters
$labelstring
More...
 
 getLabel ()
 
Returns
string
More...
 
 setItems (array $items)
 
Parameters
array$items
More...
 
 getItems ()
 
Returns
array
More...
 
 count ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 setHighlighted ($status)
 Set whether or not this group is highlighted. More...
 
 isHighlighted ()
 Returns whether or not it is a highlighted group. More...
 
 getLabel ()
 
 setLabel ($label)
 
 setItems (array $items)
 
 getItems ()
 

Protected Attributes

 $users = []
 
 $highlighted = false
 
 $label = ''
 

Detailed Description

Class ilUsersGalleryGroup.

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

Constructor & Destructor Documentation

◆ __construct()

ilUsersGalleryGroup::__construct ( array  $users)

ilUsersGalleryGroupImpl constructor.

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 86 of file class.ilUsersGalleryGroup.php.

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

References count().

Referenced by count().

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

◆ current()

ilUsersGalleryGroup::current ( )

Returns
ilUsersGalleryUser

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

96 {
97 return current($this->users);
98 }

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
array

Implements ilUsersGalleryUserCollection.

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

79 {
80 return $this->users;
81 }

References $users.

◆ getLabel()

ilUsersGalleryGroup::getLabel ( )

Returns
string

Implements ilUsersGalleryUserCollection.

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

References $label.

Referenced by ilUsersGalleryGUI\populateTemplate().

+ Here is the caller graph for this function:

◆ isHighlighted()

ilUsersGalleryGroup::isHighlighted ( )

Returns whether or not it is a highlighted group.

Returns
boolean

Implements ilUsersGalleryUserCollection.

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

47 {
48 return (bool) $this->highlighted;
49 }

References $highlighted.

Referenced by ilUsersGalleryGUI\populateTemplate().

+ Here is the caller graph for this function:

◆ key()

ilUsersGalleryGroup::key ( )

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

112 {
113 key($this->users);
114 }

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 103 of file class.ilUsersGalleryGroup.php.

104 {
105 next($this->users);
106 }

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 127 of file class.ilUsersGalleryGroup.php.

128 {
129 reset($this->users);
130 }

◆ setHighlighted()

ilUsersGalleryGroup::setHighlighted (   $status)

Set whether or not this group is highlighted.

Parameters
boolean$status

Implements ilUsersGalleryUserCollection.

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

39 {
40 $this->highlighted = (bool) $status;
41 }

◆ setItems()

ilUsersGalleryGroup::setItems ( array  $items)

Parameters
array$items

Implements ilUsersGalleryUserCollection.

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

71 {
72 $this->users = $items;
73 }

◆ setLabel()

ilUsersGalleryGroup::setLabel (   $label)

Parameters
$labelstring

Implements ilUsersGalleryUserCollection.

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

55 {
56 $this->label = $label;
57 }

References $label.

◆ valid()

ilUsersGalleryGroup::valid ( )

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

120 {
121 return key($this->users) !== null;
122 }

References key().

+ Here is the call graph for this function:

Field Documentation

◆ $highlighted

ilUsersGalleryGroup::$highlighted = false
protected

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

Referenced by isHighlighted().

◆ $label

ilUsersGalleryGroup::$label = ''
protected

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

Referenced by getLabel(), and setLabel().

◆ $users

ilUsersGalleryGroup::$users = []
protected

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

Referenced by __construct(), and getItems().


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