rooms api

This commit is contained in:
xinatorus
2020-05-15 20:59:12 +02:00
parent 02ba4e5d6f
commit c3d8a211ed
3 changed files with 41 additions and 23 deletions

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,