Property | Type | Description | |
---|---|---|---|
$dohistory | From CommonDBTM | ||
$rightname |
Property | Type | Description | |
---|---|---|---|
$forward_entity_to | |||
$usenotepad |
Method | Description | |
---|---|---|
addOrRestoreFromTrash ( $name, $manufacturer, $entity, $comment = '' ) | Add a printer. If already exist in dustbin restore it | |
addPrinter ( $name, $manufacturer, $entity, $comment = '' ) : the | Create a new printer | |
canUnrecurs ( ) : booleen | Can I change recusvive flag to false check if there is "linked" object in another entity | |
cleanDBonPurge ( ) | ||
defineTabs ( $options = [] ) | ||
getLinkedItems ( ) : an | Return the linked items (in computers_items) | |
getSearchOptions ( ) | ||
getSpecificMassiveActions ( $checkitem = NULL ) | ||
getTypeName ( $nb ) | Name of the type | |
post_addItem ( ) | ||
prepareInputForAdd ( $input ) | ||
prepareInputForUpdate ( $input ) | ||
removeFromTrash ( $ID ) : boolean | Restore a software from dustbin | |
showForm ( $ID, $options = [] ) : boolean | Print the printer form | |
useDeletedToLockIfDynamic ( ) |
public addOrRestoreFromTrash ( $name, $manufacturer, $entity, $comment = '' ) | ||
$name | the printer's name (need to be addslashes) | |
$manufacturer | the software's manufacturer (need to be addslashes) | |
$entity | the entity in which the software must be added | |
$comment | comment (default '') |
public addPrinter ( $name, $manufacturer, $entity, $comment = '' ) : the | ||
$name | the printer's name (need to be addslashes) | |
$manufacturer | the printer's manufacturer (need to be addslashes) | |
$entity | the entity in which the printer must be added | |
$comment | (default '') | |
return | the | printer's ID |
public canUnrecurs ( ) : booleen | ||
return | booleen |
public getLinkedItems ( ) : an | ||
return | an | array of linked items like array('Computer' => array(1,2), 'Printer' => array(5,6)) |
static public getTypeName ( $nb ) | ||
$nb | : number of item in the type |
public removeFromTrash ( $ID ) : boolean | ||
$ID | the ID of the software to put in dustbin | |
return | boolean | (success) |