mirror of
https://github.com/voc/streaming-website
synced 2024-11-14 00:17:18 +00:00
25 lines
377 B
PHP
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;
|
|
}
|
|
}
|