PHP 클래스 CommonITILCost, glpi

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

공개 프로퍼티들

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

메소드 상세

computeTotalCost() 정적인 공개 메소드

Computer total cost of a item
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

displayTabContentForItem() 정적인 공개 메소드

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI CommonGLPI object
$tabnum (default 1)
$withtemplate (default 0)

getCostsSummary() 정적인 공개 메소드

Get costs summary values
static public getCostsSummary ( $type, $ID ) : array
$type string type
$ID integer ID of the ticket
리턴 array of costs and actiontime

getItilObjectItemType() 공개 메소드

getLastCostForItem() 공개 메소드

Get last datas for an item
public getLastCostForItem ( $items_id )
$items_id integer ID of the item

getSearchOptions() 공개 메소드

public getSearchOptions ( )

getSearchOptionsToAdd() 정적인 공개 메소드

static public getSearchOptionsToAdd ( )

getTabNameForItem() 공개 메소드

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

getTotalActionTimeForItem() 공개 메소드

Get total actiNULL 11400 0.0000 0.0000 0.0000 on time used on costs for an item
public getTotalActionTimeForItem ( $items_id )
$items_id integer ID of the item

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

initBasedOnPrevious() 공개 메소드

Init cost for creation based on previous cost
public initBasedOnPrevious ( )

showForObject() 정적인 공개 메소드

Print the item costs
static public showForObject ( $item, $withtemplate = '' ) : total
$item CommonITILObject object or Project
$withtemplate boolean Template or basic item (default '')
리턴 total cost

showForm() 공개 메소드

Print the item cost form
public showForm ( $ID, $options = [] )
$ID integer ID of the item
$options array options used

프로퍼티 상세

$dohistory 공개적으로 프로퍼티

public $dohistory