diff --git a/src/shiftplanning.php b/src/shiftplanning.php index 46e6a87..818bdb3 100644 --- a/src/shiftplanning.php +++ b/src/shiftplanning.php @@ -1003,12 +1003,15 @@ public function deleteSchedule( $id ) ); } - public function getShifts( ) + public function getShifts( $shift_filters = array( ) ) {// get shifts return $this->setRequest( - array( - 'module' => 'schedule.shifts', - 'method' => 'GET' + array_merge( + array( + 'module' => 'schedule.shifts', + 'method' => 'GET' + ), + $shift_filters ) ); } @@ -1294,4 +1297,4 @@ public function getAPIMethods( ) ); } } -?> \ No newline at end of file +?>