mirror of
https://github.com/voc/streaming-website
synced 2024-09-20 22:41:55 +00:00
34 lines
561 B
PHP
34 lines
561 B
PHP
<?php
|
|
|
|
class Overview
|
|
{
|
|
public function __construct(Conference $conference)
|
|
{
|
|
$this->conference = $conference;
|
|
}
|
|
|
|
public function getConference() {
|
|
return $this->conference;
|
|
}
|
|
|
|
public function getGroups() {
|
|
$groups = array();
|
|
|
|
foreach($this->getConference()->get('OVERVIEW.GROUPS') as $group => $rooms)
|
|
{
|
|
foreach($rooms as $room)
|
|
{
|
|
try {
|
|
$groups[$group][] = $this->getConference()->getRoom($room);
|
|
}
|
|
catch(NotFoundException $e)
|
|
{
|
|
// just ignore unknown rooms
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
|
|
return $groups;
|
|
}
|
|
}
|