PHP 클래스 ContractCost, glpi

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

공개 프로퍼티들

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

공개 메소드들

메소드 설명
cloneContract ( $oldid, $newid ) Duplicate all costs from a contract template to its clone
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getLastCostForContract ( $contracts_id ) Get last datas for a contract
getSearchOptions ( )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
initBasedOnPrevious ( ) Init cost for creation based on previous cost
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
showForContract ( Contract $contract, $withtemplate = '' ) : Nothing Print the contract costs
showForm ( $ID, $options = [] ) Print the contract cost form

메소드 상세

cloneContract() 정적인 공개 메소드

Duplicate all costs from a contract template to its clone
static public cloneContract ( $oldid, $newid )
$oldid
$newid

displayTabContentForItem() 정적인 공개 메소드

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

getLastCostForContract() 공개 메소드

Get last datas for a contract
public getLastCostForContract ( $contracts_id )
$contracts_id integer ID of the contract

getSearchOptions() 공개 메소드

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

getTabNameForItem() 공개 메소드

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

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

initBasedOnPrevious() 공개 메소드

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

prepareInputForAdd() 공개 메소드

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

prepareInputForUpdate() 공개 메소드

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

showForContract() 정적인 공개 메소드

Print the contract costs
static public showForContract ( Contract $contract, $withtemplate = '' ) : Nothing
$contract Contract Contract object
$withtemplate boolean Template or basic item (default '')
리턴 Nothing (call to classes members)

showForm() 공개 메소드

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

프로퍼티 상세

$dohistory 공개적으로 프로퍼티

public $dohistory

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

public static $items_id

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

From CommonDBChild
public static $itemtype