ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ()
 

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.

References $users.

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

Member Function Documentation

◆ count()

ilUsersGalleryGroup::count ( )

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

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

◆ current()

ilUsersGalleryGroup::current ( )

Returns
ilUsersGalleryUser

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

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

◆ getItems()

ilUsersGalleryGroup::getItems ( )

Returns
array

Implements ilUsersGalleryUserCollection.

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

References $users.

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

◆ getLabel()

ilUsersGalleryGroup::getLabel ( )

Returns
string

Implements ilUsersGalleryUserCollection.

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

References $label.

63  {
64  return $this->label;
65  }

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

References $highlighted.

Referenced by ilUsersGalleryGUI\populateTemplate().

47  {
48  return (bool) $this->highlighted;
49  }
+ Here is the caller graph for this function:

◆ key()

ilUsersGalleryGroup::key ( )

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

Referenced by valid().

112  {
113  key($this->users);
114  }
+ 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  }

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

References $label.

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

◆ valid()

ilUsersGalleryGroup::valid ( )

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

References key().

120  {
121  return key($this->users) !== null;
122  }
+ 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: