diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-12-27 18:45:27 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-12-27 18:45:27 +0100 |
commit | c589219a962203ddb2a8b3899f964ca5ae5209ef (patch) | |
tree | ee8c01d5a839c4bd15365868851562e5d35e897c /includes/model | |
parent | 2c41fcdc0902279fd5c651a7ba08dbe7ba02d94b (diff) |
freeloader feature
Diffstat (limited to 'includes/model')
-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 |