Bitrix API

WorkTimeService

Table of Contents

Constants

WORK_TIME_OPTION  = 'MATCH_WORK_TIME'

Methods

__construct()  : mixed
getClosestWorkTime()  : DateTime
isHoliday()  : bool
isWorkTime()  : bool

Constants

Methods

__construct()

public __construct([int $userId = 0 ]) : mixed
Parameters
$userId : int = 0

isHoliday()

public isHoliday(int $timestamp) : bool
Parameters
$timestamp : int
Return values
bool

isWorkTime()

public isWorkTime(int $timestamp) : bool
Parameters
$timestamp : int
Return values
bool

        
On this page

Search results