Property | Type | Description | |
---|---|---|---|
$items_id_1 | |||
$items_id_2 | |||
$itemtype_1 | From CommonDBRelation | ||
$itemtype_2 | |||
$log_history_1_add | |||
$log_history_1_delete | |||
$log_history_2_add | |||
$log_history_2_delete |
Method | Description | |
---|---|---|
cloneComputer ( $oldid, $newid ) | Duplicate all software from a computer template to its clone | |
countForSoftware ( $softwares_id ) : number | Get number of installed versions of a software | |
countForVersion ( $softwareversions_id, $entity = '' ) : number | Get number of installed licenses of a version | |
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTypeName ( $nb ) | ||
prepareInputForAdd ( $input ) | ||
prepareInputForUpdate ( $input ) | ||
processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids ) | ||
showForComputer ( Computer $comp, $withtemplate = '' ) : nothing | Show software installed on a computer | |
showForSoftware ( Software $software ) : nothing | Show installation of a Software | |
showForVersion ( SoftwareVersion $version ) : nothing | Show installation of a Version | |
showForVersionByEntity ( SoftwareVersion $version ) : nothing | Show number of installations per entity | |
showMassiveActionsSubForm ( MassiveAction $ma ) | ||
updateDatasForComputer ( $computers_id ) | ||
upgrade ( $instID, $softwareversions_id, $dohistory = 1 ) : nothing | Update version installed on a computer |
Method | Description | |
---|---|---|
displaySoftsByLicense ( $data, $computers_id, $withtemplate, $canedit ) : nothing | Display a software for a License (not installed) | |
showInstallations ( $searchID, $crit ) : nothing | Show installations of a software | |
softsByCategory ( $data, $computers_id, $withtemplate, $canedit, $display ) : array | Display a installed software for a category |
static public cloneComputer ( $oldid, $newid ) | ||
$oldid | ID of the computer to clone | |
$newid | ID of the computer cloned |
static public countForSoftware ( $softwares_id ) : number | ||
$softwares_id | software ID | |
return | number | of installations |
static public countForVersion ( $softwareversions_id, $entity = '' ) : number | ||
$softwareversions_id | version ID | |
$entity | to search for computer in (default '' = all active entities) (default '') | |
return | number | of installations |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI | CommonGLPI object |
$tabnum | (default 1) | |
$withtemplate | (default 0) |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
static public processMassiveActionsForOneItemtype ( MassiveAction $ma, CommonDBTM $item, array $ids ) | ||
$ma | MassiveAction | |
$item | CommonDBTM | |
$ids | array |
static public showForComputer ( Computer $comp, $withtemplate = '' ) : nothing | ||
$comp | Computer | Computer object |
$withtemplate | template case of the view process (default '') | |
return | nothing |
static public showForSoftware ( Software $software ) : nothing | ||
$software | Software | Software object |
return | nothing |
static public showForVersion ( SoftwareVersion $version ) : nothing | ||
$version | SoftwareVersion | SoftwareVersion object |
return | nothing |
static public showForVersionByEntity ( SoftwareVersion $version ) : nothing | ||
$version | SoftwareVersion | SoftwareVersion object |
return | nothing |
static public showMassiveActionsSubForm ( MassiveAction $ma ) | ||
$ma | MassiveAction |
public updateDatasForComputer ( $computers_id ) | ||
$computers_id |
public upgrade ( $instID, $softwareversions_id, $dohistory = 1 ) : nothing | ||
$instID | ID of the install software lienk | |
$softwareversions_id | ID of the new version | |
$dohistory | Do history ? (default 1) | |
return | nothing |