ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilUsersGallerySortedUserGroup 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 ilUsersGallerySortedUserGroup:
+ Collaboration diagram for ilUsersGallerySortedUserGroup:

Public Member Functions

 __construct (ilUsersGalleryUserCollection $collection, ilUsersGalleryUserCollectionSorter $sorter)
 
 setItems (array $items)
 
 getItems ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 count ()
 
 setHighlighted (bool $status)
 
 isHighlighted ()
 
 setLabel (string $label)
 
 getLabel ()
 

Protected Attributes

ilUsersGalleryUserCollection $collection
 
ilUsersGalleryUserCollectionSorter $sorter
 

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 21 of file class.ilUsersGallerySortedUserGroup.php.

Constructor & Destructor Documentation

◆ __construct()

ilUsersGallerySortedUserGroup::__construct ( ilUsersGalleryUserCollection  $collection,
ilUsersGalleryUserCollectionSorter  $sorter 
)

Definition at line 26 of file class.ilUsersGallerySortedUserGroup.php.

References $collection, and $sorter.

27  {
28  $this->collection = $collection;
29  $this->sorter = $sorter;
30  }
ilUsersGalleryUserCollectionSorter $sorter

Member Function Documentation

◆ count()

ilUsersGallerySortedUserGroup::count ( )

Definition at line 68 of file class.ilUsersGallerySortedUserGroup.php.

68  : int
69  {
70  return $this->collection->count();
71  }

◆ current()

ilUsersGallerySortedUserGroup::current ( )

Definition at line 42 of file class.ilUsersGallerySortedUserGroup.php.

43  {
44  return $this->collection->current();
45  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getItems()

ilUsersGallerySortedUserGroup::getItems ( )
Returns
ilUsersGalleryUser[]

Implements ilUsersGalleryUserCollection.

Definition at line 37 of file class.ilUsersGallerySortedUserGroup.php.

37  : array // Missing array type.
38  {
39  return $this->collection->getItems();
40  }

◆ getLabel()

ilUsersGallerySortedUserGroup::getLabel ( )

Implements ilUsersGalleryUserCollection.

Definition at line 88 of file class.ilUsersGallerySortedUserGroup.php.

88  : string
89  {
90  return $this->collection->getLabel();
91  }

◆ isHighlighted()

ilUsersGallerySortedUserGroup::isHighlighted ( )

Implements ilUsersGalleryUserCollection.

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

78  : bool
79  {
80  return $this->collection->isHighlighted();
81  }

◆ key()

ilUsersGallerySortedUserGroup::key ( )

Definition at line 52 of file class.ilUsersGallerySortedUserGroup.php.

53  {
54  return $this->collection->key();
55  }

◆ next()

ilUsersGallerySortedUserGroup::next ( )

Definition at line 47 of file class.ilUsersGallerySortedUserGroup.php.

47  : void
48  {
49  $this->collection->next();
50  }

◆ rewind()

ilUsersGallerySortedUserGroup::rewind ( )

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

62  : void
63  {
64  $this->collection->setItems($this->sorter->sort($this->collection->getItems()));
65  $this->collection->rewind();
66  }

◆ setHighlighted()

ilUsersGallerySortedUserGroup::setHighlighted ( bool  $status)

Implements ilUsersGalleryUserCollection.

Definition at line 73 of file class.ilUsersGallerySortedUserGroup.php.

73  : void
74  {
75  $this->collection->setHighlighted($status);
76  }

◆ setItems()

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

Implements ilUsersGalleryUserCollection.

Definition at line 32 of file class.ilUsersGallerySortedUserGroup.php.

32  : void // Missing array type.
33  {
34  $this->collection->setItems($items);
35  }

◆ setLabel()

ilUsersGallerySortedUserGroup::setLabel ( string  $label)

Implements ilUsersGalleryUserCollection.

Definition at line 83 of file class.ilUsersGallerySortedUserGroup.php.

83  : void
84  {
85  $this->collection->setLabel($label);
86  }

◆ valid()

ilUsersGallerySortedUserGroup::valid ( )

Definition at line 57 of file class.ilUsersGallerySortedUserGroup.php.

57  : bool
58  {
59  return $this->collection->valid();
60  }

Field Documentation

◆ $collection

ilUsersGalleryUserCollection ilUsersGallerySortedUserGroup::$collection
protected

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

Referenced by __construct().

◆ $sorter

ilUsersGalleryUserCollectionSorter ilUsersGallerySortedUserGroup::$sorter
protected

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

Referenced by __construct().


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