mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
rooms api
This commit is contained in:
1 parent
02ba4e5d6f
commit
c3d8a211ed
3 files changed
+41
-23
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user