Свойство | Тип | Описание | |
---|---|---|---|
$dohistory | From CommonDBTM | ||
$items_id | |||
$itemtype | From CommonDBChild |
Метод | Описание | |
---|---|---|
addDelayInDay ( $calendars_id, $day, $begin_time, $delay ) : timestamp | Add a delay of a starting hour in a specific day | |
cloneCalendar ( $oldid, $newid ) | Duplicate all segments from a calendar to his clone | |
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getActiveTimeBetween ( $calendars_id, $day, $begin_time, $end_time ) : timestamp | Get segments of a calendar between 2 date | |
getFirstWorkingHour ( $calendars_id, $day ) : time | Get first working hour of a day | |
getForbiddenStandardMassiveAction ( ) | ||
getLastWorkingHour ( $calendars_id, $day ) : time | Get last working hour of a day | |
getSegmentsBetween ( $calendars_id, $begin_day, $begin_time, $end_day, $end_time ) | Get segments of a calendar between 2 date | |
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTypeName ( $nb ) | ||
isAWorkingHour ( $calendars_id, $day, $hour ) : boolean | Is the hour passed is a working hour ? | |
post_addItem ( ) | ||
post_deleteFromDB ( ) | ||
prepareInputForAdd ( $input ) | ||
showForCalendar ( Calendar $calendar ) | Show segments of a calendar |
static public addDelayInDay ( $calendars_id, $day, $begin_time, $delay ) : timestamp | ||
$calendars_id | id of the calendar | |
$day | day number | |
$begin_time | begin time | |
$delay | timestamp delay to add | |
Результат | timestamp | value |
static public cloneCalendar ( $oldid, $newid ) | ||
$oldid | ||
$newid |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
static public getActiveTimeBetween ( $calendars_id, $day, $begin_time, $end_time ) : timestamp | ||
$calendars_id | id of the calendar | |
$day | day number | |
$begin_time | begin time to check | |
$end_time | end time to check | |
Результат | timestamp | value |
static public getFirstWorkingHour ( $calendars_id, $day ) : time | ||
$calendars_id | id of the calendar | |
$day | day number | |
Результат | time | value |
static public getLastWorkingHour ( $calendars_id, $day ) : time | ||
$calendars_id | id of the calendar | |
$day | day number | |
Результат | time | value |
static public getSegmentsBetween ( $calendars_id, $begin_day, $begin_time, $end_day, $end_time ) | ||
$calendars_id | id of the calendar | |
$begin_day | begin day number | |
$begin_time | begin time to check | |
$end_day | end day number | |
$end_time | end time to check |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
static public isAWorkingHour ( $calendars_id, $day, $hour ) : boolean | ||
$calendars_id | id of the calendar | |
$day | day number | |
$hour | hour (Format HH:MM::SS) | |
Результат | boolean |
static public showForCalendar ( Calendar $calendar ) | ||
$calendar | Calendar | Calendar object |