streaming-website/model/Overview.php
2015-07-14 16:59:06 +02:00

25 lines
377 B
PHP

<?php
class Overview extends ModelBase
{
public function getGroups() {
$groups = array();
foreach($this->get('OVERVIEW.GROUPS') as $group => $rooms)
{
foreach($rooms as $room)
{
try {
$groups[$group][] = new Room($room);
}
catch(NotFoundException $e)
{
// just ignore unknown rooms
continue;
}
}
}
return $groups;
}
}