summaryrefslogtreecommitdiff
path: root/includes/model/Room_model.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-24 12:01:19 +0100
committermsquare <msquare@notrademark.de>2017-11-24 12:01:19 +0100
commit928e707015fa5b9b3e2dd52c9493552ae1218911 (patch)
treeef7e9f297b9f3581361279cda45e46d0778b58c2 /includes/model/Room_model.php
parentd8476f244dd0ee1bccaab53f123fa12f2a9c9501 (diff)
add shift calendar to angeltype view
Diffstat (limited to 'includes/model/Room_model.php')
-rw-r--r--includes/model/Room_model.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/model/Room_model.php b/includes/model/Room_model.php
index 8425e5ad..74a08be4 100644
--- a/includes/model/Room_model.php
+++ b/includes/model/Room_model.php
@@ -14,6 +14,17 @@ function Rooms($show_all = false)
}
/**
+ * Returns Room id array
+ *
+ * @return array
+ */
+function Room_ids()
+{
+ $result = DB::select('SELECT `RID` FROM `Room`');
+ return select_array($result, 'RID', 'RID');
+}
+
+/**
* Delete a room
*
* @param int $room_id