ShiftService extends BaseService
Table of Contents
Methods
- __construct() : mixed
- add() : ShiftServiceResult
- deleteFutureShiftPlans() : ScheduleServiceResult
- deleteShiftById() : mixed
- update() : AddResult|UpdateResult|ShiftServiceResult
Methods
__construct()
public
__construct(ShiftRepository $shiftRepository, ShiftPlanRepository $shiftPlanRepository, WorktimeAgentManager $worktimeAgentManager) : mixed
Parameters
- $shiftRepository : ShiftRepository
- $shiftPlanRepository : ShiftPlanRepository
- $worktimeAgentManager : WorktimeAgentManager
add()
public
add(mixed $scheduleOrId, ShiftForm $shiftForm) : ShiftServiceResult
Parameters
- $scheduleOrId : mixed
- $shiftForm : ShiftForm
Return values
ShiftServiceResultdeleteFutureShiftPlans()
public
deleteFutureShiftPlans(Schedule $schedule[, Shift|ShiftCollection|null $shiftParam = null ][, mixed $activeUserIds = [] ]) : ScheduleServiceResult
Parameters
- $schedule : Schedule
- $shiftParam : Shift|ShiftCollection|null = null
- $activeUserIds : mixed = []
Tags
Return values
ScheduleServiceResultdeleteShiftById()
public
deleteShiftById(Shift $shift, Schedule $schedule[, mixed $activeUserIds = [] ]) : mixed
Parameters
update()
public
update(mixed $shiftOrId, ShiftForm $shiftForm) : AddResult|UpdateResult|ShiftServiceResult
Parameters
- $shiftOrId : mixed
- $shiftForm : ShiftForm