Calendar
Table of Contents
Methods
- __construct() : mixed
- createFromPortalSchedule() : static
- getClosestDate() : DateTime
- getSchedule() : ScheduleInterface
- needUseCalendar() : bool
- needUseSchedule() : bool
Methods
__construct()
public
__construct(ScheduleInterface $schedule) : mixed
Parameters
- $schedule : ScheduleInterface
createFromPortalSchedule()
public
static createFromPortalSchedule([array<string|int, mixed>|null $settings = null ]) : static
Parameters
- $settings : array<string|int, mixed>|null = null
Return values
staticgetClosestDate()
public
getClosestDate(DateTime $date, int $offsetInSeconds[, bool $matchSchedule = false ][, bool $matchWorkTime = false ]) : DateTime
Parameters
- $date : DateTime
- $offsetInSeconds : int
- $matchSchedule : bool = false
- $matchWorkTime : bool = false
Return values
DateTimegetSchedule()
public
getSchedule() : ScheduleInterface
Return values
ScheduleInterfaceneedUseCalendar()
public
static needUseCalendar(string $feature) : bool
Parameters
- $feature : string
Return values
boolneedUseSchedule()
public
static needUseSchedule() : bool