PHP 클래스 Calendar, glpi

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

공개 프로퍼티들

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

메소드 상세

cleanDBonPurge() 공개 메소드

public cleanDBonPurge ( )

computeEndDate() 공개 메소드

if delay >= DAY_TIMESTAMP : work in days else work in minutes
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

defineTabs() 공개 메소드

public defineTabs ( $options = [] )

duplicate() 공개 메소드

Clone a calendar to another entity : name is updated
public duplicate ( $options = [] )
$options array of new values to set

getActiveTimeBetween() 공개 메소드

Get active time between to date time for the active calendar
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

getDayNumberInWeek() 정적인 공개 메소드

Get day number (in week) for a date
static public getDayNumberInWeek ( $date )
$date date

getDaysDurations() 공개 메소드

Get days durations including all segments of the current calendar
public getDaysDurations ( ) : end
리턴 end date

getDurationsCache() 공개 메소드

Get days durations including all segments of the current calendar
public getDurationsCache ( ) : end
리턴 end date

getForbiddenStandardMassiveAction() 공개 메소드

getSpecificMassiveActions() 공개 메소드

또한 보기: CommonDBTM::getSpecificMassiveActions()
public getSpecificMassiveActions ( $checkitem = NULL )

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

isAWorkingDay() 공개 메소드

Is the time passed is in a working day
public isAWorkingDay ( $time ) : boolean
$time time time to check
리턴 boolean

isAWorkingHour() 공개 메소드

Is the time passed is in a working hour
public isAWorkingHour ( $time ) : boolean
$time time time to check
리턴 boolean

isHoliday() 공개 메소드

is an holiday day ?
public isHoliday ( $date ) : boolean
$date date of the day to check
리턴 boolean

processMassiveActionsForOneItemtype() 정적인 공개 메소드

또한 보기: CommonDBTM::processMassiveActionsForOneItemtype()
static public processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids )
$ma MassiveAction
$item CommonDBTM
$ids array

showMassiveActionsSubForm() 정적인 공개 메소드

또한 보기: CommonDBTM::showMassiveActionsSubForm()
static public showMassiveActionsSubForm ( MassiveAction $ma )
$ma MassiveAction

updateDurationCache() 공개 메소드

Update the calendar cache
public updateDurationCache ( $calendars_id )
$calendars_id integer calendar ID

프로퍼티 상세

$can_be_translated 공개적으로 프로퍼티

public $can_be_translated

$dohistory 공개적으로 프로퍼티

From CommonDBTM
public $dohistory

$forward_entity_to 보호되어 있는 정적으로 프로퍼티

protected static $forward_entity_to

$rightname 정적으로 공개적으로 프로퍼티

static public $rightname