diff options
Diffstat (limited to 'includes/model/ShiftEntry_model.php')
-rw-r--r-- | includes/model/ShiftEntry_model.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/model/ShiftEntry_model.php b/includes/model/ShiftEntry_model.php index 230f69b0..97fdf784 100644 --- a/includes/model/ShiftEntry_model.php +++ b/includes/model/ShiftEntry_model.php @@ -14,4 +14,14 @@ function ShiftEntries_by_shift_and_angeltype($shift_id, $angeltype_id) { "); } +/** + * Returns all freeloaded shifts for given user. + */ +function ShiftEntries_freeloaded_by_user($user) { + return sql_select("SELECT * + FROM `ShiftEntry` + WHERE `freeloaded` = 1 + AND `UID`=" . sql_escape($user['UID'])); +} + ?>
\ No newline at end of file |