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
formatDate()
Get formatted date.
public
formatDate() : string
Return values
stringgetCode()
Get code.
public
getCode() : string
Return values
stringgetCodeUpper()
Get upper code.
public
getCodeUpper() : string
Return values
stringgetDate()
Get date.
public
getDate() : Date
Return values
DategetDateFrom()
Get date from.
public
getDateFrom() : Date
Return values
DategetDateTo()
Get date to.
public
getDateTo() : Date
Return values
DategetDay()
Get day.
public
getDay() : int
Return values
intgetList()
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
intgetName()
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.