diff options
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() { |