PHP 클래스 Contract_Item, glpi

Relation between Contracts and Items
상속: extends CommonDBRelation
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$items_id_1
$items_id_2
$itemtype_1 From CommonDBRelation
$itemtype_2

공개 메소드들

메소드 설명
canCreateItem ( ) Don't create a Contract_Item on contract that is alreay max used Was previously done (until 0.83.*) by Contract_Item::can()
cloneItem ( $itemtype, $oldid, $newid, $newitemtype = '' ) Duplicate contracts from an item template to its clone
countForContract ( Contract $item )
countForItem ( CommonDBTM $item )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getForbiddenStandardMassiveAction ( )
getItemsForContract ( $contract_id, $entities_id ) : array
getRelationMassiveActionsSpecificities ( )
getSearchOptions ( )
getSpecificValueToDisplay ( $field, $values, array $options = [] )
getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
showForContract ( Contract $contract ) : Nothing Print the HTML array for Items linked to current contract
showForItem ( CommonDBTM $item, $withtemplate = '' ) : Nothing Print an HTML array of contract associated to an object

메소드 상세

canCreateItem() 공개 메소드

Don't create a Contract_Item on contract that is alreay max used Was previously done (until 0.83.*) by Contract_Item::can()
또한 보기: CommonDBRelation::canCreateItem()
public canCreateItem ( )

cloneItem() 정적인 공개 메소드

Duplicate contracts from an item template to its clone
static public cloneItem ( $itemtype, $oldid, $newid, $newitemtype = '' )
$itemtype itemtype of the item
$oldid ID of the item to clone
$newid ID of the item cloned
$newitemtype itemtype of the new item (= $itemtype if empty) (default '')

countForContract() 정적인 공개 메소드

static public countForContract ( Contract $item )
$item Contract Contract object

countForItem() 정적인 공개 메소드

static public countForItem ( CommonDBTM $item )
$item CommonDBTM CommonDBTM object

displayTabContentForItem() 정적인 공개 메소드

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

getForbiddenStandardMassiveAction() 공개 메소드

getItemsForContract() 정적인 공개 메소드

static public getItemsForContract ( $contract_id, $entities_id ) : array
$contract_id contract ID
$entities_id entity ID
리턴 array of items linked to contracts

getRelationMassiveActionsSpecificities() 정적인 공개 메소드

또한 보기: CommonDBRelation::getRelationMassiveActionsSpecificities()

getSearchOptions() 공개 메소드

public getSearchOptions ( )

getSpecificValueToDisplay() 정적인 공개 메소드

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

getSpecificValueToSelect() 정적인 공개 메소드

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

getTabNameForItem() 공개 메소드

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

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

showForContract() 정적인 공개 메소드

Print the HTML array for Items linked to current contract
static public showForContract ( Contract $contract ) : Nothing
$contract Contract Contract object
리턴 Nothing (display)

showForItem() 정적인 공개 메소드

Print an HTML array of contract associated to an object
static public showForItem ( CommonDBTM $item, $withtemplate = '' ) : Nothing
$item CommonDBTM CommonDBTM object wanted
$withtemplate not used (to be deleted) (default '')
리턴 Nothing (display)

프로퍼티 상세

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

public static $items_id_1

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

public static $items_id_2

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

From CommonDBRelation
public static $itemtype_1

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

public static $itemtype_2