summaryrefslogtreecommitdiff
path: root/includes/model/ShiftEntry_model.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-09-28 15:01:02 +0200
committerPhilip Häusler <msquare@notrademark.de>2014-09-28 15:01:02 +0200
commitbd2a8b441f16c6a1beb0b38e787be3d75a1b8da2 (patch)
treee483ae40f60c416ef7443210e016ff0684a3f56c /includes/model/ShiftEntry_model.php
parent1d9e1c467cf4d3920f9bcf0157481c7ca8ea6d5d (diff)
clear up mvc for user list
Diffstat (limited to 'includes/model/ShiftEntry_model.php')
-rw-r--r--includes/model/ShiftEntry_model.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/model/ShiftEntry_model.php b/includes/model/ShiftEntry_model.php
index 332620f6..c7895f17 100644
--- a/includes/model/ShiftEntry_model.php
+++ b/includes/model/ShiftEntry_model.php
@@ -1,6 +1,13 @@
<?php
/**
+ * Counts all freeloaded shifts.
+ */
+function ShiftEntries_freeleaded_count() {
+ return sql_select_single_cell("SELECT COUNT(*) FROM `ShiftEntry` WHERE `freeloaded` = 1");
+}
+
+/**
* Returns next (or current) shifts of given user.
* @param User $user
*/