diff options
Diffstat (limited to 'includes/model/ShiftEntry_model.php')
-rw-r--r-- | includes/model/ShiftEntry_model.php | 7 |
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 */ |