rooms api

This commit is contained in:
xinatorus committed 2020-05-15 20:59:22 +02:00
1 parent 02ba4e5d6f
commit c3d8a211ed
3 files changed
+41 -23

No files matched your search

+5
View File
@@ -12,6 +12,11 @@ class RoomManager{
return $allRoom;
}
static function getRoomsDefault () {
$allRoom = Db::loadAll ("SELECT room_id, name FROM rooms");
return $allRoom;
}
public static function create ($name) {
$room = array (
'name' => $name,