Свойство | Тип | Описание | |
---|---|---|---|
$can_be_translated | |||
$dohistory | From CommonDBTM | ||
$rightname |
Свойство | Тип | Описание | |
---|---|---|---|
$forward_entity_to |
Метод | Описание | |
---|---|---|
cleanDBonPurge ( ) | ||
computeEndDate ( $start, $delay, $additional_delay, $work_in_days = false, $end_of_working_day = false ) : end | Add a delay to a date using the active calendar | |
defineTabs ( $options = [] ) | ||
duplicate ( $options = [] ) | Clone a calendar to another entity : name is updated | |
getActiveTimeBetween ( $start, $end, $work_in_days = false ) : timestamp | Get active time between to date time for the active calendar | |
getDayNumberInWeek ( $date ) | Get day number (in week) for a date | |
getDaysDurations ( ) : end | Get days durations including all segments of the current calendar | |
getDurationsCache ( ) : end | Get days durations including all segments of the current calendar | |
getForbiddenStandardMassiveAction ( ) | ||
getSpecificMassiveActions ( $checkitem = NULL ) | ||
getTypeName ( $nb ) | ||
isAWorkingDay ( $time ) : boolean | Is the time passed is in a working day | |
isAWorkingHour ( $time ) : boolean | Is the time passed is in a working hour | |
isHoliday ( $date ) : boolean | is an holiday day ? | |
processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids ) | ||
showMassiveActionsSubForm ( MassiveAction $ma ) | ||
updateDurationCache ( $calendars_id ) | Update the calendar cache |
public computeEndDate ( $start, $delay, $additional_delay, $work_in_days = false, $end_of_working_day = false ) : end | ||
$start | datetime begin | |
$delay | timestamp delay to add | |
$additional_delay | timestamp delay to add (default 0) | |
$work_in_days | boolean force working in days (false by default) | |
$end_of_working_day | boolean end of working day (false by default) | |
Результат | end | date |
public duplicate ( $options = [] ) | ||
$options | array of new values to set |
public getActiveTimeBetween ( $start, $end, $work_in_days = false ) : timestamp | ||
$start | datetime begin | |
$end | datetime end | |
$work_in_days | boolean force working in days (false by default) | |
Результат | timestamp | of delay |
static public getDayNumberInWeek ( $date ) | ||
$date | date |
public getDaysDurations ( ) : end | ||
Результат | end | date |
public getDurationsCache ( ) : end | ||
Результат | end | date |
public isAWorkingDay ( $time ) : boolean | ||
$time | time time to check | |
Результат | boolean |
public isAWorkingHour ( $time ) : boolean | ||
$time | time time to check | |
Результат | boolean |
static public processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids ) | ||
$ma | MassiveAction | |
$item | CommonDBTM | |
$ids | array |
static public showMassiveActionsSubForm ( MassiveAction $ma ) | ||
$ma | MassiveAction |
public updateDurationCache ( $calendars_id ) | ||
$calendars_id | integer calendar ID |