Settings_PublicHoliday_Module_Model
extends Settings_Vtiger_Module_Model
in package
Settings PublicHoliday module model class.
Tags
Table of Contents
- $baseIndex : mixed
- $baseTable : mixed
- $listFields : mixed
- $name : mixed
- $nameFields : mixed
- getHolidaysByRange() : array<string|int, Settings_PublicHoliday_Record_Model>
- Returns holidays into date range.
- getInstance() : Settings_PublicHoliday_Module_Model
- Returns instance of Settings module model.
- isPagingSupported() : bool
- Return info about module paging feature.
Properties
$baseIndex
public
mixed
$baseIndex
= 'publicholidayid'
$baseTable
public
mixed
$baseTable
= 'vtiger_publicholiday'
$listFields
public
mixed
$listFields
= ['holidayname' => 'Name', 'holidaydate' => 'Date', 'holidaytype' => 'Type']
$name
public
mixed
$name
= 'PublicHoliday'
$nameFields
public
mixed
$nameFields
= ['holidayname']
Methods
getHolidaysByRange()
Returns holidays into date range.
public
getHolidaysByRange(array<string|int, mixed> $range[, int $sorting = SORT_ASC ]) : array<string|int, Settings_PublicHoliday_Record_Model>
Parameters
- $range : array<string|int, mixed>
- $sorting : int = SORT_ASC
-
SORT_ASC|SORT_DESC
Return values
array<string|int, Settings_PublicHoliday_Record_Model> —getInstance()
Returns instance of Settings module model.
public
static getInstance([string $name = 'Settings:PublicHoliday' ]) : Settings_PublicHoliday_Module_Model
Parameters
- $name : string = 'Settings:PublicHoliday'
Return values
Settings_PublicHoliday_Module_Model —isPagingSupported()
Return info about module paging feature.
public
isPagingSupported() : bool
Return values
bool —- true: pageable, false: not pageable