ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilUsersGallerySortedUserGroup.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/User/Gallery/interfaces/interface.ilUsersGalleryUserCollection.php';
5 
10 {
14  protected $collection;
15 
19  protected $sorter;
20 
27  {
28  $this->collection = $collection;
29  $this->sorter = $sorter;
30  }
31 
35  public function setItems(array $items)
36  {
37  $this->collection->setItems($items);
38  }
39 
43  public function getItems()
44  {
45  return $this->collection->getItems();
46  }
47 
52  public function current()
53  {
54  return $this->collection->current();
55  }
56 
60  public function next()
61  {
62  $this->collection->next();
63  }
64 
68  public function key()
69  {
70  return $this->collection->key();
71  }
72 
76  public function valid()
77  {
78  return $this->collection->valid();
79  }
80 
84  public function rewind()
85  {
86  $this->collection->setItems($this->sorter->sort($this->collection->getItems()));
87  $this->collection->rewind();
88  }
89 
93  public function count()
94  {
95  return $this->collection->count();
96  }
97 
101  public function setHighlighted($status)
102  {
103  $this->collection->setHighlighted($status);
104  }
105 
109  public function isHighlighted()
110  {
111  return $this->collection->isHighlighted();
112  }
113 
117  public function setLabel($label)
118  {
119  $this->collection->setLabel($label);
120  }
121 
125  public function getLabel()
126  {
127  return $this->collection->getLabel();
128  }
129 }
Interface ilUsersGalleryUserCollection.
Class ilUsersGallerySortedUserGroup.
__construct(ilUsersGalleryUserCollection $collection, ilUsersGalleryUserCollectionSorter $sorter)
ilUsersGallerySortedUserCollection constructor.
isHighlighted()
Returns whether or not it is a highlighted group.boolean
setHighlighted($status)
Set whether or not this group is highlighted.
Interface ilUsersGalleryUserCollectionSorter.