PHP 클래스 SLT, glpi

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

공개 프로퍼티들

프로퍼티 타입 설명
$dohistory From CommonDBTM
$items_id
$itemtype From CommonDBChild
$rightname

보호된 프로퍼티들

프로퍼티 타입 설명
$forward_entity_to

공개 메소드들

메소드 설명
addLevelToDo ( Ticket $ticket, $slalevels_id ) : execution Add a level to do for a ticket
cleanDBonPurge ( )
computeDate ( $start_date, $additional_delay ) : due Get date based on a slt
computeExecutionDate ( $start_date, $slalevels_id, $additional_delay ) : execution Get execution date of a sla level
defineTabs ( $options = [] )
deleteLevelsToDo ( Ticket $ticket ) : execution Add a level to do for a ticket
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) : boolean
getActiveTimeBetween ( $start, $end ) : timestamp Get active time between to date time for the active calendar
getFromDB ( $ID )
getSLTTime ( ) : resolution Get computed resolution time
getSearchOptions ( )
getSltData ( $condition ) Get SLT datas by condition
getSltDataForTicket ( $tickets_id, $type ) Get SLT data by type and ticket
getSltFieldNames ( $type ) : array Get SLT table fields
getSltTypeDropdown ( $options ) Get SLT types dropdown
getSltTypeName ( type $type ) : string Get SLT types name
getSltTypes ( ) : array Get SLT types
getSpecificValueToDisplay ( $field, $values, array $options = [] )
getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) : string
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb ) Time to own
post_getEmpty ( )
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
setTicketCalendar ( $calendars_id ) Define calendar of the ticket using the SLT when using this calendar as slt-s calendar
showForSla ( SLA $sla ) : boolean Print the HTML array for SLTs linked to a SLA
showForm ( $ID, $options = [] ) : boolean Print the sla form
showSltForTicket ( Ticket $ticket, $type, $tt, $canupdate ) Show SLT for ticket

메소드 상세

addLevelToDo() 공개 메소드

Add a level to do for a ticket
public addLevelToDo ( Ticket $ticket, $slalevels_id ) : execution
$ticket Ticket Ticket object
$slalevels_id
리턴 execution date time (NULL if sla not exists)

cleanDBonPurge() 공개 메소드

public cleanDBonPurge ( )

computeDate() 공개 메소드

Get date based on a slt
public computeDate ( $start_date, $additional_delay ) : due
$start_date datetime start date
$additional_delay integer additional delay to add or substract (for waiting time) (default 0)
리턴 due date time (NULL if sla not exists)

computeExecutionDate() 공개 메소드

Get execution date of a sla level
public computeExecutionDate ( $start_date, $slalevels_id, $additional_delay ) : execution
$start_date datetime start date
$slalevels_id integer sla level id
$additional_delay integer additional delay to add or substract (for waiting time) (default 0)
리턴 execution date time (NULL if sla not exists)

defineTabs() 공개 메소드

public defineTabs ( $options = [] )

deleteLevelsToDo() 정적인 공개 메소드

Add a level to do for a ticket
static public deleteLevelsToDo ( Ticket $ticket ) : execution
$ticket Ticket Ticket object
리턴 execution date time (NULL if sla not exists)

displayTabContentForItem() 정적인 공개 메소드

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) : boolean
$item CommonGLPI CommonGLPI item
$tabnum (default 1)
$withtemplate (default 0)
리턴 boolean

getActiveTimeBetween() 공개 메소드

Get active time between to date time for the active calendar
public getActiveTimeBetween ( $start, $end ) : timestamp
$start datetime begin
$end datetime end
리턴 timestamp of delay

getFromDB() 공개 메소드

또한 보기: CommonDBTM::getFromDB
public getFromDB ( $ID )

getSLTTime() 공개 메소드

Get computed resolution time
public getSLTTime ( ) : resolution
리턴 resolution time

getSearchOptions() 공개 메소드

public getSearchOptions ( )

getSltData() 공개 메소드

Get SLT datas by condition
public getSltData ( $condition )
$condition

getSltDataForTicket() 공개 메소드

Get SLT data by type and ticket
public getSltDataForTicket ( $tickets_id, $type )
$tickets_id
$type

getSltFieldNames() 정적인 공개 메소드

Get SLT table fields
static public getSltFieldNames ( $type ) : array
$type
리턴 array

getSltTypeDropdown() 정적인 공개 메소드

Get SLT types dropdown
static public getSltTypeDropdown ( $options )
$options

getSltTypeName() 정적인 공개 메소드

Get SLT types name
static public getSltTypeName ( type $type ) : string
$type type
리턴 string name

getSltTypes() 정적인 공개 메소드

Get SLT types
static public getSltTypes ( ) : array
리턴 array of types

getSpecificValueToDisplay() 정적인 공개 메소드

static public getSpecificValueToDisplay ( $field, $values, array $options = [] )
$field
$values
$options array array

getSpecificValueToSelect() 정적인 공개 메소드

static public getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) : string
$field
$name (default '')
$values (default '')
$options array array
리턴 string

getTabNameForItem() 공개 메소드

또한 보기: CommonGLPI::getTabNameForItem()
public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTypeName() 정적인 공개 메소드

Time to own
static public getTypeName ( $nb )

post_getEmpty() 공개 메소드

또한 보기: CommonDBTM::post_getEmpty()
public post_getEmpty ( )

prepareInputForAdd() 공개 메소드

또한 보기: CommonDBTM::prepareInputForAdd()
public prepareInputForAdd ( $input )

prepareInputForUpdate() 공개 메소드

또한 보기: CommonDBTM::prepareInputForUpdate()
public prepareInputForUpdate ( $input )

setTicketCalendar() 공개 메소드

Define calendar of the ticket using the SLT when using this calendar as slt-s calendar
public setTicketCalendar ( $calendars_id )
$calendars_id calendars_id of the ticket

showForSla() 정적인 공개 메소드

Print the HTML array for SLTs linked to a SLA
static public showForSla ( SLA $sla ) : boolean
$sla SLA
리턴 boolean

showForm() 공개 메소드

Print the sla form
public showForm ( $ID, $options = [] ) : boolean
$ID integer ID of the item
$options array of possible options: - target filename : where to go when done. - withtemplate boolean : template or basic item
리턴 boolean item found

showSltForTicket() 공개 메소드

Show SLT for ticket
public showSltForTicket ( Ticket $ticket, $type, $tt, $canupdate )
$ticket Ticket Ticket item
$type
$tt
$canupdate

프로퍼티 상세

$dohistory 공개적으로 프로퍼티

From CommonDBTM
public $dohistory

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

protected static $forward_entity_to

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

public static $items_id

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

From CommonDBChild
public static $itemtype

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

static public $rightname