Bitrix API

WorktimeServiceResult extends BaseServiceResult

Table of Contents

Constants

ERROR_EMPTY_ACTIONS  = 'ERROR_EMPTY_ACTIONS'
ERROR_EXPIRED_REASON_NEEDED  = 'ERROR_EXPIRED_REASON_NEEDED'
ERROR_FOR_USER  = 'ERROR_FOR_USER'
ERROR_MULTI_ACTIONS  = 'ERROR_MULTI_ACTIONS'
ERROR_REASON_NEEDED  = 'ERROR_REPORT_NEEDED'

Methods

addProhibitedActionError()  : mixed
addReasonNeededError()  : mixed
addRecordNotFoundError()  : mixed
addScheduleNotFoundError()  : mixed
createByResult()  : static
createWithErrorText()  : static
getFirstError()  : Error|null
getSchedule()  : Schedule
getShift()  : Shift|null
getWorktimeAction()  : WorktimeAction
getWorktimeEvent()  : mixed
getWorktimeEvents()  : array<string|int, WorktimeEvent>
getWorktimeRecord()  : WorktimeRecord
isSuccessResult()  : mixed
setSchedule()  : $this
setShift()  : $this
setWorktimeAction()  : WorktimeServiceResult
setWorktimeEvent()  : WorktimeServiceResult
setWorktimeEvents()  : WorktimeServiceResult
setWorktimeRecord()  : WorktimeServiceResult

Constants

ERROR_EXPIRED_REASON_NEEDED

public mixed ERROR_EXPIRED_REASON_NEEDED = 'ERROR_EXPIRED_REASON_NEEDED'

Methods

addProhibitedActionError()

public addProhibitedActionError([mixed $code = 0 ][, mixed $reasonCode = null ]) : mixed
Parameters
$code : mixed = 0
$reasonCode : mixed = null

addScheduleNotFoundError()

public addScheduleNotFoundError([mixed $code = 0 ]) : mixed
Parameters
$code : mixed = 0

createByResult()

public static createByResult(Result $result) : static
Parameters
$result : Result
Return values
static

createWithErrorText()

public static createWithErrorText(mixed $text[, mixed $code = 0 ]) : static
Parameters
$text : mixed
$code : mixed = 0
Return values
static

getFirstError()

public getFirstError() : Error|null
Return values
Error|null

isSuccessResult()

public static isSuccessResult(Result $result) : mixed
Parameters
$result : Result

        
On this page

Search results