PHP Класс CalendarSegment, glpi

Наследование: extends CommonDBChild
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Описание методов

addDelayInDay() статический публичный Метод

Add a delay of a starting hour in a specific day
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

cloneCalendar() статический публичный Метод

Duplicate all segments from a calendar to his clone
static public cloneCalendar ( $oldid, $newid )
$oldid
$newid

displayTabContentForItem() статический публичный Метод

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI

getActiveTimeBetween() статический публичный Метод

Get segments of a calendar between 2 date
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

getFirstWorkingHour() статический публичный Метод

Get first working hour of a day
static public getFirstWorkingHour ( $calendars_id, $day ) : time
$calendars_id id of the calendar
$day day number
Результат time value

getForbiddenStandardMassiveAction() публичный Метод

getLastWorkingHour() статический публичный Метод

Get last working hour of a day
static public getLastWorkingHour ( $calendars_id, $day ) : time
$calendars_id id of the calendar
$day day number
Результат time value

getSegmentsBetween() статический публичный Метод

Get segments of a calendar between 2 date
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

getTabNameForItem() публичный Метод

public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTypeName() статический публичный Метод

static public getTypeName ( $nb )

isAWorkingHour() статический публичный Метод

Is the hour passed is a working hour ?
static public isAWorkingHour ( $calendars_id, $day, $hour ) : boolean
$calendars_id id of the calendar
$day day number
$hour hour (Format HH:MM::SS)
Результат boolean

post_addItem() публичный Метод

public post_addItem ( )

post_deleteFromDB() публичный Метод

public post_deleteFromDB ( )

prepareInputForAdd() публичный Метод

public prepareInputForAdd ( $input )

showForCalendar() статический публичный Метод

Show segments of a calendar
static public showForCalendar ( Calendar $calendar )
$calendar Calendar Calendar object

Описание свойств

$dohistory публичное свойство

From CommonDBTM
public $dohistory

$items_id публичное статическое свойство

public static $items_id

$itemtype публичное статическое свойство

From CommonDBChild
public static $itemtype