Property | Type | Description | |
---|---|---|---|
$items_id_1 | |||
$items_id_2 | |||
$itemtype_1 | From CommonDBRelation | ||
$itemtype_2 |
Method | Description | |
---|---|---|
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 |
public canCreateItem ( ) |
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 '') |
static public countForContract ( Contract $item ) | ||
$item | Contract | Contract object |
static public countForItem ( CommonDBTM $item ) | ||
$item | CommonDBTM | CommonDBTM object |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI | CommonGLPI object |
$tabnum | (default 1) | |
$withtemplate | (default 0) |
static public getItemsForContract ( $contract_id, $entities_id ) : array | ||
$contract_id | contract ID | |
$entities_id | entity ID | |
return | array | of items linked to contracts |
static public getRelationMassiveActionsSpecificities ( ) |
static public getSpecificValueToDisplay ( $field, $values, array $options = [] ) | ||
$options | array |
static public getSpecificValueToSelect ( $field, $name = '', $values = '', array $options = [] ) | ||
$field | ||
$name | (default '') | |
$values | (default '') | |
$options | array | array |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
static public showForContract ( Contract $contract ) : Nothing | ||
$contract | Contract | Contract object |
return | Nothing | (display) |
static public showForItem ( CommonDBTM $item, $withtemplate = '' ) : Nothing | ||
$item | CommonDBTM | CommonDBTM object wanted |
$withtemplate | not used (to be deleted) (default '') | |
return | Nothing | (display) |