Свойство | Type | Description | |
---|---|---|---|
$dohistory | |||
$items_id | |||
$itemtype | From CommonDBChild | ||
$no_form_page |
Свойство | Type | Description | |
---|---|---|---|
$forward_entity_to | From CommonDBTM |
Méthode | Description | |
---|---|---|
backToStock ( array $input, $history = 1 ) | send back to stock | |
countForCartridgeItem ( CartridgeItem $item ) | ||
countForPrinter ( Printer $item ) | ||
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getCount ( $tID, $alarm_threshold, $nohtml ) : string | Print the cartridge count HTML array for the cartridge item $tID | |
getCountForPrinter ( $pID, $nohtml ) : string | Print the cartridge count HTML array for the printer $pID | |
getForbiddenStandardMassiveAction ( ) | ||
getNameField ( ) | ||
getNotificationParameters ( $entity ) | Get notification parameters by entity | |
getOldNumber ( $tID ) : integer | count how many old cartbridge for the cartridge item $tID | |
getOldNumberForPrinter ( $pID ) : integer | count how many old cartbridge for theprinter $pID | |
getPreAdditionalInfosForName ( ) | ||
getRights ( $interface = 'central' ) | ||
getStatus ( $date_use, $date_out ) : string | Get the dict value for the status of a cartridge | |
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTotalNumber ( $tID ) : integer | count how many cartbridge for the cartridge item $tID | |
getTotalNumberForPrinter ( $pID ) : integer | count how many cartbridge for the printer $pID | |
getTypeName ( $nb ) | ||
getUnusedNumber ( $tID ) : integer | count how many cartbridge unused for the cartridge item $tID | |
getUsedNumber ( $tID ) : integer | count how many cartridge used for the cartridge item $tID | |
getUsedNumberForPrinter ( $pID ) : integer | count how many cartridge used for the printer $pID | |
install ( $pID, $tID ) : boolean | Link a cartridge to a printer. | |
post_addItem ( ) | ||
post_updateItem ( $history = 1 ) | ||
prepareInputForAdd ( $input ) | ||
processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids ) | ||
showAddForm ( CartridgeItem $cartitem ) : Nothing | Print out a link to add directly a new cartridge from a cartridge item. | |
showForCartridgeItem ( CartridgeItem $cartitem, $show_old ) : Nothing | Print out the cartridges of a defined type | |
showForPrinter ( Printer $printer, $old ) : nothing | Show installed cartridges | |
showForm ( $ID, $options = [] ) | form for Cartridge | |
showMassiveActionsSubForm ( MassiveAction $ma ) | ||
uninstall ( $ID ) : boolean | UnLink a cartridge linked to a printer |
public backToStock ( array $input, $history = 1 ) | ||
$input | array |
static public countForCartridgeItem ( CartridgeItem $item ) | ||
$item | CartridgeItem |
static public countForPrinter ( Printer $item ) | ||
$item | Printer | Printer object |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
static public getCountForPrinter ( $pID, $nohtml ) : string | ||
$pID | integer: printer identifier. | |
$nohtml | integer: Return value without HTML tags (default 0) | |
Résultat | string | to display |
static public getNotificationParameters ( $entity ) |
static public getOldNumber ( $tID ) : integer | ||
$tID | integer: cartridge item identifier. | |
Résultat | integer | : number of old cartridge counted. |
static public getOldNumberForPrinter ( $pID ) : integer | ||
$pID | integer: printer identifier. | |
Résultat | integer | : number of old cartridge counted. |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
static public getTotalNumber ( $tID ) : integer | ||
$tID | integer: cartridge item identifier. | |
Résultat | integer | : number of cartridge counted. |
static public getTotalNumberForPrinter ( $pID ) : integer | ||
$pID | integer: printer identifier. | |
Résultat | integer | : number of cartridge counted. |
static public getUnusedNumber ( $tID ) : integer | ||
$tID | integer: cartridge item identifier. | |
Résultat | integer | : number of cartridge unused counted. |
static public getUsedNumber ( $tID ) : integer | ||
$tID | integer: cartridge item identifier. | |
Résultat | integer | : number of cartridge used counted. |
static public getUsedNumberForPrinter ( $pID ) : integer | ||
$pID | integer: printer identifier. | |
Résultat | integer | : number of cartridge used counted. |
static public processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids ) | ||
$ma | MassiveAction | |
$item | CommonDBTM | |
$ids | array |
static public showAddForm ( CartridgeItem $cartitem ) : Nothing | ||
$cartitem | CartridgeItem | CartridgeItem object |
Résultat | Nothing | (displays) |
static public showForCartridgeItem ( CartridgeItem $cartitem, $show_old ) : Nothing | ||
$cartitem | CartridgeItem | object of CartridgeItem class |
$show_old | boolean show old cartridges or not (default 0) | |
Résultat | Nothing | (displays) |
static public showForPrinter ( Printer $printer, $old ) : nothing | ||
$printer | Printer | Printer object |
$old | boolean old cartridges or not ? (default 0) | |
Résultat | nothing | (display) |
public showForm ( $ID, $options = [] ) | ||
$ID | integer Id of the cartridge | |
$options | array of possible options: - parent Object : the printers where the cartridge is used |
static public showMassiveActionsSubForm ( MassiveAction $ma ) | ||
$ma | MassiveAction |
protected static $forward_entity_to |