diff options
author | msquare <msquare@notrademark.de> | 2016-11-17 14:35:04 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-11-17 14:35:04 +0100 |
commit | 9c4636f5c4dd5d3b7ff12effb553172f8235cfe6 (patch) | |
tree | aa1ac8dc1fdbe18120ec667610eab7f64cc8ac34 /includes/model/ShiftEntry_model.php | |
parent | b5784e5961c0121f6c4d9f27f75473c56c727a5a (diff) |
reduce complexity of user driver license
Diffstat (limited to 'includes/model/ShiftEntry_model.php')
-rw-r--r-- | includes/model/ShiftEntry_model.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/model/ShiftEntry_model.php b/includes/model/ShiftEntry_model.php index 63127bc7..99f67028 100644 --- a/includes/model/ShiftEntry_model.php +++ b/includes/model/ShiftEntry_model.php @@ -1,6 +1,22 @@ <?php /** + * Returns an array with the attributes of shift entries. + * FIXME! Needs entity object. + */ +function ShiftEntry_new() { + return [ + 'id' => null, + 'SID' => null, + 'TID' => null, + 'UID' => null, + 'Comment' => null, + 'freeloaded_comment' => null, + 'freeloaded' => false + ]; +} + +/** * Counts all freeloaded shifts. */ function ShiftEntries_freeleaded_count() { |