diff --git a/model/Room.php b/model/Room.php index cac01ccc..12c88817 100644 --- a/model/Room.php +++ b/model/Room.php @@ -25,6 +25,15 @@ class Room extends ModelBase return null; } + public static function rooms() + { + $rooms = array(); + foreach(ModelBase::get('ROOMS') as $slug => $room) + $rooms[] = new Room($slug); + + return $rooms; + } + public function getSlug() { return $this->slug;