Bitrix API

Holiday

Table of Contents

Methods

__construct()  : mixed
Holiday constructor.
formatDate()  : string
Get formatted date.
getCode()  : string
Get code.
getCodeUpper()  : string
Get upper code.
getDate()  : Date
Get date.
getDateFrom()  : Date
Get date from.
getDateTo()  : Date
Get date to.
getDay()  : int
Get day.
getList()  : array<string|int, self>
Get list by language.
getMonth()  : int
Get day.
getName()  : string
Get name.

Methods

__construct()

Holiday constructor.

public __construct(string $code[, Date|null $date = null ], Date $dateFrom, Date $dateTo) : mixed
Parameters
$code : string

Code.

$date : Date|null = null

Date.

$dateFrom : Date

Date from.

$dateTo : Date

Date to.

formatDate()

Get formatted date.

public formatDate() : string
Return values
string

getCode()

Get code.

public getCode() : string
Return values
string

getCodeUpper()

Get upper code.

public getCodeUpper() : string
Return values
string

getDateFrom()

Get date from.

public getDateFrom() : Date
Return values
Date

getDay()

Get day.

public getDay() : int
Return values
int

getList()

Get list by language.

public static getList([string|mixed $languageId = LANGUAGE_ID ]) : array<string|int, self>
Parameters
$languageId : string|mixed = LANGUAGE_ID

Language ID.

Return values
array<string|int, self>

getMonth()

Get day.

public getMonth() : int
Return values
int

getName()

Get name.

public getName([string $template = null ][, string $placeholder = '%name%' ]) : string
Parameters
$template : string = null

Template of name.

$placeholder : string = '%name%'

Placeholder of name in template.

Return values
string

        
On this page

Search results