Property | Type | Description | |
---|---|---|---|
$dohistory | From CommonDBTM | ||
$rightname |
Property | Type | Description | |
---|---|---|---|
$forward_entity_to | |||
$usenotepad |
Method | Description | |
---|---|---|
cleanDBonPurge ( ) | ||
computeValidityIndicator ( $ID, $number ) : validity | Compute licence validity indicator. | |
countForSoftware ( $softwares_id ) : number | Get number of licensesof a software | |
countForVersion ( $softwareversions_id, $entity = '' ) : number | Get number of bought licenses of a version | |
cronInfo ( $name ) : arrray | Give cron information | |
cronSoftware ( $task = NULL ) | Cron action on softwares : alert on expired licences | |
defineTabs ( $options = [] ) | ||
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getPreAdditionalInfosForName ( ) | ||
getSearchOptions ( ) | ||
getSearchOptionsToAdd ( ) | ||
getSpecificMassiveActions ( $checkitem = NULL ) | ||
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTypeName ( $nb ) | ||
getUnicityFieldsToDisplayInErrorMessage ( ) : an | Get fields to display in the unicity error message | |
maybeRecursive ( ) : boolean | Is the license may be recursive | |
post_addItem ( ) | ||
post_deleteFromDB ( ) | ||
post_updateItem ( $history = 1 ) | ||
pre_updateInDB ( ) | ||
prepareInputForAdd ( $input ) | ||
prepareInputForUpdate ( $input ) | ||
showDebug ( ) | Display debug information for current object | |
showForSoftware ( Software $software ) : nothing | Show Licenses of a software | |
showForm ( $ID, $options = [] ) : true | Print the Software / license form | |
updateValidityIndicator ( $ID ) : nothing | Update validity indicator of a specific license |
static public computeValidityIndicator ( $ID, $number ) : validity | ||
$ID | ID of the licence | |
$number | licence count to check (default -1) | |
return | validity | indicator |
static public countForSoftware ( $softwares_id ) : number | ||
$softwares_id | software ID | |
return | number | of licenses |
static public countForVersion ( $softwareversions_id, $entity = '' ) : number | ||
$softwareversions_id | version ID | |
$entity | to search for licenses in (default = all active entities) (default '') | |
return | number | of installations |
static public cronInfo ( $name ) : arrray | ||
$name | : task's name | |
return | arrray | of information |
static public cronSoftware ( $task = NULL ) | ||
$task | to log, if NULL display (default NULL) |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
public getUnicityFieldsToDisplayInErrorMessage ( ) : an | ||
return | an | array which contains field => label |
public maybeRecursive ( ) : boolean | ||
return | boolean |
static public showForSoftware ( Software $software ) : nothing | ||
$software | Software | Software object |
return | nothing |
public showForm ( $ID, $options = [] ) : true | ||
$ID | integer Id of the version or the template to print | |
$options | array of possible options: - target form target - softwares_id ID of the software for add process | |
return | true | if displayed false if item not found or not right to display |
static public updateValidityIndicator ( $ID ) : nothing | ||
$ID | ID of the licence | |
return | nothing |