ShiftProvider
Table of Contents
Methods
-
findByDate()
: Shift|null
-
get()
: Shift|null
-
getInstance()
: self
-
getUsersStatisticsByMonthCode()
: array<string|int, mixed>
-
hasActiveShift()
: bool
-
list()
: ShiftCollection
-
prepareClientData()
: array<string|int, mixed>
-
prepareToAdd()
: ShiftDto
-
prepareToUpdate()
: ShiftDto
findByDate()
public
findByDate(string|null $date) : Shift|null
Parameters
-
$date
: string|null
-
-
throws
-
ArgumentException
-
throws
-
ObjectException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
get()
public
get(int $shiftId) : Shift|null
Parameters
-
$shiftId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
getInstance()
public
static getInstance(int $userId) : self
Parameters
-
$userId
: int
-
public
getUsersStatisticsByMonthCode(array<string|int, mixed> $userIds, string $monthCode) : array<string|int, mixed>
Parameters
-
$userIds
: array<string|int, mixed>
-
-
$monthCode
: string
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
Return values
array<string|int, mixed>
hasActiveShift()
public
hasActiveShift() : bool
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
list()
public
list([array<string|int, mixed> $filter = [] ][, array<string|int, mixed> $select = [] ][, array<string|int, mixed> $order = [] ][, int $limit = 0 ]) : ShiftCollection
Parameters
-
$filter
: array<string|int, mixed>
= []
-
-
$select
: array<string|int, mixed>
= []
-
-
$order
: array<string|int, mixed>
= []
-
-
$limit
: int
= 0
-
-
throws
-
ArgumentException
-
throws
-
ObjectException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
prepareClientData()
public
prepareClientData(ShiftCollection $collection) : array<string|int, mixed>
Parameters
-
$collection
: ShiftCollection
-
-
throws
-
UnknownActionException
Return values
array<string|int, mixed>
prepareToAdd()
public
prepareToAdd(ShiftDto $shiftDto) : ShiftDto
Parameters
-
$shiftDto
: ShiftDto
-
prepareToUpdate()
public
prepareToUpdate(Shift $shift, ShiftDto $shiftDto) : ShiftDto
Parameters
-
$shift
: Shift
-
-
$shiftDto
: ShiftDto
-