summaryrefslogtreecommitdiff
path: root/includes/model/ShiftEntry_model.php
blob: 79652c9b8a5d40ef2799116077f1ef06a01015e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

/**
 * Returns all shift entries in given shift for given angeltype.
 * @param int $shift_id
 * @param int $angeltype_id
 */
function ShiftEntries_by_shift_and_angeltype($shift_id, $angeltype_id) {
  return sql_select("
      SELECT * 
      FROM `ShiftEntries`
      WHERE `SID`=" . sql_escape($shift_id) . "
      AND `TID`=" . sql_escape($angeltype_id) . "
      ");
}

?>