diff options
author | MaZderMind | 2016-12-18 13:34:57 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-18 13:34:57 +0100 |
commit | a12d86ec058bc89e6feeda6ec8cfce691269b0a9 (patch) | |
tree | 6be1f764a8addd025eb774bcd2039788a4b1873f /model/Overview.php | |
parent | 521f0e2e1c94538fdce65a021144180f368364d9 (diff) | |
parent | efd0b59f8ed363e12211894d8892e4d18b198c04 (diff) |
Merge branch 'master' into events/33c3
Diffstat (limited to '')
-rw-r--r-- | model/Overview.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/model/Overview.php b/model/Overview.php index 03ef8b4..8a467bc 100644 --- a/model/Overview.php +++ b/model/Overview.php @@ -1,16 +1,25 @@ <?php -class Overview extends ModelBase +class Overview { + public function __construct(Conference $conference) + { + $this->conference = $conference; + } + + public function getConference() { + return $this->conference; + } + public function getGroups() { $groups = array(); - foreach($this->get('OVERVIEW.GROUPS') as $group => $rooms) + foreach($this->getConference()->get('OVERVIEW.GROUPS') as $group => $rooms) { foreach($rooms as $room) { try { - $groups[$group][] = new Room($room); + $groups[$group][] = $this->getConference()->getRoom($room); } catch(NotFoundException $e) { |