WorktimeRecord extends EO_WorktimeRecord
Table of Contents
Methods
- approve() : mixed
- buildRecordedStartDateTime() : DateTime|null
- buildRecordedStopDateTime() : mixed
- buildStopTimestampBySecondsAndDate() : mixed|null
- calculateCurrentBreakLength() : mixed
- calculateCurrentDuration() : mixed
- collectRawValues() : array<string|int, mixed>
- continueWork() : mixed
- defineReports() : mixed
- defineSchedule() : mixed
- defineShift() : mixed
- defineWorktimeEvents() : mixed
- getRecordedBreakLength() : mixed
- isActive() : mixed
- isApproved() : mixed
- isClosed() : mixed
- isOpened() : mixed
- isPaused() : mixed
- isRecordClosed() : mixed
- isRecordedBreakLengthChanged() : mixed
- isRecordOpened() : mixed
- isRecordPaused() : mixed
- obtainEventByType() : WorktimeEvent|null
- obtainReports() : mixed
- obtainSchedule() : Schedule|null
- obtainShift() : Shift|null
- obtainUser() : User|null
- obtainWorktimeEvents() : WorktimeEventCollection
- pauseWork() : mixed
- setRecordedBreakLength() : mixed
- startWork() : WorktimeRecord
- stopWork() : mixed
- updateByForm() : $this
- wakeUpRecord() : mixed
Methods
approve()
public
approve([bool $approved = true ]) : mixed
Parameters
- $approved : bool = true
buildRecordedStartDateTime()
public
buildRecordedStartDateTime() : DateTime|null
Return values
DateTime|nullbuildRecordedStopDateTime()
public
buildRecordedStopDateTime() : mixed
buildStopTimestampBySecondsAndDate()
public
buildStopTimestampBySecondsAndDate(mixed $stopSeconds, mixed $stopFormattedDate, mixed $userIdTimezone) : mixed|null
Parameters
- $stopSeconds : mixed
- $stopFormattedDate : mixed
- $userIdTimezone : mixed
Return values
mixed|nullcalculateCurrentBreakLength()
public
calculateCurrentBreakLength() : mixed
calculateCurrentDuration()
public
calculateCurrentDuration() : mixed
collectRawValues()
public
collectRawValues() : array<string|int, mixed>
Return values
array<string|int, mixed>continueWork()
public
continueWork() : mixed
defineReports()
public
defineReports(mixed $reports) : mixed
Parameters
- $reports : mixed
defineSchedule()
public
defineSchedule(Schedule $schedule) : mixed
Parameters
- $schedule : Schedule
defineShift()
public
defineShift(Shift $shift) : mixed
Parameters
- $shift : Shift
defineWorktimeEvents()
public
defineWorktimeEvents(mixed $worktimeEvents) : mixed
Parameters
- $worktimeEvents : mixed
getRecordedBreakLength()
public
getRecordedBreakLength() : mixed
isActive()
public
isActive() : mixed
isApproved()
public
isApproved() : mixed
isClosed()
public
isClosed() : mixed
isOpened()
public
isOpened() : mixed
isPaused()
public
isPaused() : mixed
isRecordClosed()
public
static isRecordClosed(mixed $record) : mixed
Parameters
- $record : mixed
isRecordedBreakLengthChanged()
public
isRecordedBreakLengthChanged() : mixed
isRecordOpened()
public
static isRecordOpened(mixed $record) : mixed
Parameters
- $record : mixed
isRecordPaused()
public
static isRecordPaused(mixed $record) : mixed
Parameters
- $record : mixed
obtainEventByType()
public
obtainEventByType() : WorktimeEvent|null
Return values
WorktimeEvent|nullobtainReports()
public
obtainReports() : mixed
obtainSchedule()
public
obtainSchedule() : Schedule|null
Return values
Schedule|nullobtainShift()
public
obtainShift() : Shift|null
Return values
Shift|nullobtainUser()
public
obtainUser() : User|null
Return values
User|nullobtainWorktimeEvents()
public
obtainWorktimeEvents() : WorktimeEventCollection
Return values
WorktimeEventCollectionpauseWork()
public
pauseWork(WorktimeRecordForm $recordForm) : mixed
Parameters
- $recordForm : WorktimeRecordForm
setRecordedBreakLength()
public
setRecordedBreakLength(mixed $length) : mixed
Parameters
- $length : mixed
startWork()
public
static startWork(WorktimeRecordForm $recordForm[, mixed $recordStartUtcTimestamp = null ][, mixed $userId = null ]) : WorktimeRecord
Parameters
- $recordForm : WorktimeRecordForm
- $recordStartUtcTimestamp : mixed = null
- $userId : mixed = null
Return values
WorktimeRecordstopWork()
public
stopWork(WorktimeRecordForm $workRecordForm, mixed $recordStopUtcTimestamp) : mixed
Parameters
- $workRecordForm : WorktimeRecordForm
- $recordStopUtcTimestamp : mixed
updateByForm()
public
updateByForm(WorktimeRecordForm $workRecordForm) : $this
Parameters
- $workRecordForm : WorktimeRecordForm
Return values
$thiswakeUpRecord()
public
static wakeUpRecord(mixed $record) : mixed
Parameters
- $record : mixed