Shift
extends EO_Shift
Table of Contents
Methods
-
buildUtcEndByShiftplan()
: DateTime
-
buildUtcStartByShiftplan()
: DateTime
-
buildUtcStartByUserId()
: DateTime|null
-
create()
: mixed
-
edit()
: mixed
-
getDuration()
: mixed
-
getEndHours()
: mixed
-
getEndMinutes()
: mixed
-
getEndSeconds()
: mixed
-
getStartHours()
: mixed
-
getStartMinutes()
: mixed
-
getStartSeconds()
: mixed
-
isActive()
: mixed
-
isDateInShiftWorkDays()
: mixed
-
isDeleted()
: mixed
-
isForTime()
: mixed
-
isForWeekDay()
: mixed
-
obtainSchedule()
: Schedule|null
buildUtcEndByShiftplan()
public
buildUtcEndByShiftplan(ShiftPlan $shiftPlan) : DateTime
Parameters
-
$shiftPlan
: ShiftPlan
-
buildUtcStartByShiftplan()
public
buildUtcStartByShiftplan(ShiftPlan $shiftPlan) : DateTime
Parameters
-
$shiftPlan
: ShiftPlan
-
buildUtcStartByUserId()
public
buildUtcStartByUserId(mixed $userId, DateTime $utcDateTime) : DateTime|null
Parameters
-
$userId
: mixed
-
-
$utcDateTime
: DateTime
-
Return values
DateTime|null
create()
public
static create(mixed $scheduleId, mixed $name, mixed $start, mixed $end[, mixed $breakDuration = null ][, mixed $workDays = null ]) : mixed
Parameters
-
$scheduleId
: mixed
-
-
$name
: mixed
-
-
$start
: mixed
-
-
$end
: mixed
-
-
$breakDuration
: mixed
= null
-
-
$workDays
: mixed
= null
-
edit()
public
edit(mixed $name, mixed $startTime, mixed $endTime, mixed $breakDuration, mixed $workdays) : mixed
Parameters
-
$name
: mixed
-
-
$startTime
: mixed
-
-
$endTime
: mixed
-
-
$breakDuration
: mixed
-
-
$workdays
: mixed
-
getDuration()
public
getDuration() : mixed
getEndHours()
public
getEndHours() : mixed
getEndMinutes()
public
getEndMinutes() : mixed
getEndSeconds()
public
getEndSeconds() : mixed
getStartHours()
public
getStartHours() : mixed
getStartMinutes()
public
getStartMinutes() : mixed
getStartSeconds()
public
getStartSeconds() : mixed
isActive()
public
isActive() : mixed
isDateInShiftWorkDays()
public
static isDateInShiftWorkDays(mixed $dateTime, mixed $shift) : mixed
Parameters
-
$dateTime
: mixed
-
-
$shift
: mixed
-
isDeleted()
public
isDeleted() : mixed
isForTime()
public
isForTime(mixed $seconds[, mixed $offset = 0 ]) : mixed
Parameters
-
$seconds
: mixed
-
-
$offset
: mixed
= 0
-
isForWeekDay()
public
isForWeekDay(mixed $weekDay) : mixed
Parameters
-
$weekDay
: mixed
-
obtainSchedule()
public
obtainSchedule() : Schedule|null