Bitrix API

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

Methods

findByDate()

public findByDate(string|null $date) : Shift|null
Parameters
$date : string|null
Tags
throws
ArgumentException
throws
ObjectException
throws
ObjectPropertyException
throws
SystemException
Return values
Shift|null

get()

public get(int $shiftId) : Shift|null
Parameters
$shiftId : int
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
Shift|null

getInstance()

public static getInstance(int $userId) : self
Parameters
$userId : int
Return values
self

getUsersStatisticsByMonthCode()

public getUsersStatisticsByMonthCode(array<string|int, mixed> $userIds, string $monthCode) : array<string|int, mixed>
Parameters
$userIds : array<string|int, mixed>
$monthCode : string
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

hasActiveShift()

public hasActiveShift() : bool
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
bool

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
Tags
throws
ArgumentException
throws
ObjectException
throws
ObjectPropertyException
throws
SystemException
Return values
ShiftCollection

        
On this page

Search results