Свойство | Тип | Описание | |
---|---|---|---|
$dohistory |
Метод | Описание | |
---|---|---|
computeTotalCost ( $actiontime, $cost_time, $cost_fixed, $cost_material, $edit = true ) : total | Computer total cost of a item | |
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getCostsSummary ( $type, $ID ) : array | Get costs summary values | |
getItilObjectItemType ( ) | ||
getLastCostForItem ( $items_id ) | Get last datas for an item | |
getSearchOptions ( ) | ||
getSearchOptionsToAdd ( ) | ||
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTotalActionTimeForItem ( $items_id ) | Get total actiNULL 11400 0.0000 0.0000 0.0000 on time used on costs for an item | |
getTypeName ( $nb ) | ||
initBasedOnPrevious ( ) | Init cost for creation based on previous cost | |
showForObject ( $item, $withtemplate = '' ) : total | Print the item costs | |
showForm ( $ID, $options = [] ) | Print the item cost form |
static public computeTotalCost ( $actiontime, $cost_time, $cost_fixed, $cost_material, $edit = true ) : total | ||
$actiontime | float actiontime | |
$cost_time | float time cost | |
$cost_fixed | float fixed cost | |
$cost_material | float material cost | |
$edit | boolean used for edit of computation ? (true by default) | |
Результат | total | cost formatted string |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI | CommonGLPI object |
$tabnum | (default 1) | |
$withtemplate | (default 0) |
static public getCostsSummary ( $type, $ID ) : array | ||
$type | string type | |
$ID | integer ID of the ticket | |
Результат | array | of costs and actiontime |
public getLastCostForItem ( $items_id ) | ||
$items_id | integer ID of the item |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
public getTotalActionTimeForItem ( $items_id ) | ||
$items_id | integer ID of the item |
public initBasedOnPrevious ( ) |
static public showForObject ( $item, $withtemplate = '' ) : total | ||
$item | CommonITILObject object or Project | |
$withtemplate | boolean Template or basic item (default '') | |
Результат | total | cost |
public showForm ( $ID, $options = [] ) | ||
$ID | integer ID of the item | |
$options | array options used |