diff options
-rw-r--r-- | model/Room.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/model/Room.php b/model/Room.php index cac01cc..12c8881 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; |