Property | Type | Description | |
---|---|---|---|
$items_id | |||
$itemtype | From CommonDBChild | ||
$no_form_page | |||
$rightname |
Property | Type | Description | |
---|---|---|---|
$forward_entity_to | From CommonDBTM |
Method | Description | |
---|---|---|
backToStock ( array $input, $history = 1 ) | send back to stock | |
cleanDBonPurge ( ) | ||
countForConsumableItem ( ConsumableItem $item ) | ||
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getCount ( $tID, $alarm_threshold, $nohtml ) : string | Get the consumable count HTML array for a defined consumable type | |
getForbiddenStandardMassiveAction ( ) | ||
getNameField ( ) | since version 0.84 | |
getOldNumber ( $tID ) : integer | count how many old consumable for the consumable item $tID | |
getPreAdditionalInfosForName ( ) | ||
getRights ( $interface = 'central' ) | ||
getStatus ( $cID ) : string | Get the localized string for the status of a consumable | |
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTotalNumber ( $tID ) : integer | count how many consumable for the consumable item $tID | |
getTypeName ( $nb ) | ||
getUnusedNumber ( $tID ) : integer | count how many consumable unused for the consumable item $tID | |
isNew ( $cID ) | Check if a Consumable is New (not used, in stock) | |
isOld ( $cID ) | Check if a consumable is Old (used, not in stock) | |
out ( $ID, $itemtype = '', $items_id ) : boolean | UnLink a consumable linked to a printer | |
post_addItem ( ) | ||
prepareInputForAdd ( $input ) | ||
processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids ) | ||
showAddForm ( ConsumableItem $consitem ) : Nothing | Print out a link to add directly a new consumable from a consumable item. | |
showForConsumableItem ( ConsumableItem $consitem, $show_old ) : Nothing | Print out the consumables of a defined type | |
showMassiveActionsSubForm ( MassiveAction $ma ) | ||
showSummary ( ) | Show the usage summary of consumables by user |
public backToStock ( array $input, $history = 1 ) | ||
$input | array |
static public countForConsumableItem ( ConsumableItem $item ) | ||
$item | ConsumableItem | string ConsumableItem object |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
static public getOldNumber ( $tID ) : integer | ||
$tID | integer consumable item identifier. | |
return | integer | : number of old consumable counted. |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
static public getTotalNumber ( $tID ) : integer | ||
$tID | integer consumable item identifier. | |
return | integer | : number of consumable counted. |
static public getUnusedNumber ( $tID ) : integer | ||
$tID | integer consumable item identifier. | |
return | integer | : number of consumable unused counted. |
static public isNew ( $cID ) | ||
$cID | integer consumable ID. |
static public isOld ( $cID ) | ||
$cID | integer consumable ID. |
static public processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids ) | ||
$ma | MassiveAction | |
$item | CommonDBTM | |
$ids | array |
static public showAddForm ( ConsumableItem $consitem ) : Nothing | ||
$consitem | ConsumableItem | ConsumableItem object |
return | Nothing | (displays) |
static public showForConsumableItem ( ConsumableItem $consitem, $show_old ) : Nothing | ||
$consitem | ConsumableItem | ConsumableItem object |
$show_old | boolean show old consumables or not. (default 0) | |
return | Nothing | (displays) |
static public showMassiveActionsSubForm ( MassiveAction $ma ) | ||
$ma | MassiveAction |
static public showSummary ( ) |
protected static $forward_entity_to |