WorktimeAgentManager
Table of Contents
Methods
- __construct() : mixed
- addAutoClosingAgents() : mixed
- createAutoClosingAgent() : mixed
- createAutoClosingAgentForRecords() : mixed
- createMissedShiftChecking() : mixed
- Creates agent that will be executed at the end of shift (by user time) if schedule controls missed shifts - then agent sends notification on missed shift otherwise agent just deletes itself
- createTimeLackForPeriodChecking() : mixed
- deleteAgentById() : mixed
- deleteAgentsByIds() : mixed
- deleteAutoClosingAgents() : mixed
Methods
__construct()
public
__construct(ViolationRulesRepository $violationRulesRepository, WorktimeRepository $worktimeRepository, ShiftPlanProvider $shiftPlanProvider, ScheduleProvider $scheduleProvider) : mixed
Parameters
- $violationRulesRepository : ViolationRulesRepository
- $worktimeRepository : WorktimeRepository
- $shiftPlanProvider : ShiftPlanProvider
- $scheduleProvider : ScheduleProvider
addAutoClosingAgents()
public
addAutoClosingAgents(Schedule $schedule[, mixed $shiftCollection = null ]) : mixed
Parameters
- $schedule : Schedule
- $shiftCollection : mixed = null
createAutoClosingAgent()
public
createAutoClosingAgent(WorktimeRecord $record, Schedule|null $schedule, Shift|null $shift) : mixed
Parameters
- $record : WorktimeRecord
- $schedule : Schedule|null
- $shift : Shift|null
createAutoClosingAgentForRecords()
public
createAutoClosingAgentForRecords(WorktimeRecordCollection $records) : mixed
Parameters
- $records : WorktimeRecordCollection
createMissedShiftChecking()
Creates agent that will be executed at the end of shift (by user time) if schedule controls missed shifts - then agent sends notification on missed shift otherwise agent just deletes itself
public
createMissedShiftChecking(ShiftPlan $shiftPlan, Shift $shift) : mixed
Parameters
createTimeLackForPeriodChecking()
public
createTimeLackForPeriodChecking(Schedule $schedule[, null $fromDateTime = null ][, ViolationRules $violationRules = null ]) : mixed
Parameters
- $schedule : Schedule
- $fromDateTime : null = null
- $violationRules : ViolationRules = null
Tags
deleteAgentById()
public
deleteAgentById(mixed $agentId) : mixed
Parameters
- $agentId : mixed
deleteAgentsByIds()
public
deleteAgentsByIds(mixed $ids) : mixed
Parameters
- $ids : mixed
deleteAutoClosingAgents()
public
deleteAutoClosingAgents(Schedule $schedule[, mixed $shiftCollection = null ]) : mixed
Parameters
- $schedule : Schedule
- $shiftCollection : mixed = null