PHP 클래스 CalendarSegment, glpi

상속: extends CommonDBChild
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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