WorktimeRepository
Table of Contents
Methods
-
buildOpenRecordsQuery()
: mixed
-
findAll()
: WorktimeRecordCollection
-
findAllForPeriod()
: mixed
-
findById()
: WorktimeRecord|null
-
findByIdWith()
: WorktimeRecord
-
findByUserShiftSchedule()
: WorktimeRecord|null
-
findLatestRecord()
: WorktimeRecord|null
-
findOverlappingRecordByDates()
: bool
-
findRecordOwnerUserId()
: mixed
-
save()
: Result
-
saveAll()
: UpdateResult|Result
buildOpenRecordsQuery()
public
buildOpenRecordsQuery(Schedule $schedule, ShiftCollection $shiftCollection) : mixed
Parameters
-
$schedule
: Schedule
-
-
$shiftCollection
: ShiftCollection
-
findAll()
public
findAll(mixed $selectFields, ConditionTree $whereConditions) : WorktimeRecordCollection
Parameters
-
$selectFields
: mixed
-
-
$whereConditions
: ConditionTree
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
findAllForPeriod()
public
findAllForPeriod(DateTime $fromDateTime, DateTime $toDateTime, Schedule $schedule, mixed $userIds) : mixed
Parameters
-
$fromDateTime
: DateTime
-
-
$toDateTime
: DateTime
-
-
$schedule
: Schedule
-
-
$userIds
: mixed
-
findById()
public
findById(mixed $recordId) : WorktimeRecord|null
Parameters
-
$recordId
: mixed
-
-
throws
-
ArgumentException
-
throws
-
SystemException
findByIdWith()
public
findByIdWith(mixed $recordId[, array<string|int, mixed> $withEntities = [] ]) : WorktimeRecord
Parameters
-
$recordId
: mixed
-
-
$withEntities
: array<string|int, mixed>
= []
-
-
throws
-
ArgumentException
-
throws
-
SystemException
findByUserShiftSchedule()
public
findByUserShiftSchedule(mixed $userId, mixed $shiftId, mixed $scheduleId, array<string|int, mixed> $select[, null $filter = null ]) : WorktimeRecord|null
Parameters
-
$userId
: mixed
-
-
$shiftId
: mixed
-
-
$scheduleId
: mixed
-
-
$select
: array<string|int, mixed>
-
-
$filter
: null
= null
-
-
throws
-
ArgumentException
-
throws
-
SystemException
findLatestRecord()
public
findLatestRecord(mixed $userId) : WorktimeRecord|null
Parameters
-
$userId
: mixed
-
findOverlappingRecordByDates()
public
findOverlappingRecordByDates(WorktimeRecord $record) : bool
Parameters
-
$record
: WorktimeRecord
-
findRecordOwnerUserId()
public
findRecordOwnerUserId(mixed $recordId) : mixed
Parameters
-
$recordId
: mixed
-
save()
public
save(WorktimeEvent|WorktimeRecord $entity) : Result
Parameters
-
$entity
: WorktimeEvent|WorktimeRecord
-
saveAll()
public
saveAll(WorktimeRecordCollection $records, mixed $fieldsData) : UpdateResult|Result
Parameters
-
$records
: WorktimeRecordCollection
-
-
$fieldsData
: mixed
-
-
throws
-
ArgumentException
-
throws
-
SystemException