Property | Type | Description | |
---|---|---|---|
$dohistory | From CommonDBTM | ||
$items_id | |||
$itemtype | From CommonDBChild | ||
$rightname |
Property | Type | Description | |
---|---|---|---|
$forward_entity_to |
Method | Description | |
---|---|---|
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 |
public addLevelToDo ( Ticket $ticket, $slalevels_id ) : execution | ||
$ticket | Ticket | Ticket object |
$slalevels_id | ||
return | execution | date time (NULL if sla not exists) |
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) | |
return | due | date time (NULL if sla not exists) |
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) | |
return | execution | date time (NULL if sla not exists) |
static public deleteLevelsToDo ( Ticket $ticket ) : execution | ||
$ticket | Ticket | Ticket object |
return | execution | date time (NULL if sla not exists) |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) : boolean | ||
$item | CommonGLPI | CommonGLPI item |
$tabnum | (default 1) | |
$withtemplate | (default 0) | |
return | boolean |
public getActiveTimeBetween ( $start, $end ) : timestamp | ||
$start | datetime begin | |
$end | datetime end | |
return | timestamp | of delay |
public getSLTTime ( ) : resolution | ||
return | resolution | time |
public getSltDataForTicket ( $tickets_id, $type ) | ||
$tickets_id | ||
$type |
static public getSltFieldNames ( $type ) : array | ||
$type | ||
return | array |
static public getSltTypeDropdown ( $options ) | ||
$options |
static public getSltTypeName ( type $type ) : string | ||
$type | type | |
return | string | name |
static public getSltTypes ( ) : array | ||
return | array | of types |
static public getSpecificValueToDisplay ( $field, $values, array $options = [] ) | ||
$field | ||
$values | ||
$options | array | array |
static public getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) : string | ||
$field | ||
$name | (default '') | |
$values | (default '') | |
$options | array | array |
return | string |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
public setTicketCalendar ( $calendars_id ) | ||
$calendars_id | calendars_id of the ticket |
static public showForSla ( SLA $sla ) : boolean | ||
$sla | SLA | |
return | boolean |
public showSltForTicket ( Ticket $ticket, $type, $tt, $canupdate ) | ||
$ticket | Ticket | Ticket item |
$type | ||
$tt | ||
$canupdate |