PHP Class SoftwareVersion, glpi

Inheritance: extends CommonDBChild
Mostrar archivo Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$dohistory From CommonDBTM
$items_id
$itemtype From CommonDBChild

Public Methods

Method Description
cleanDBonPurge ( )
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
dropdownForOneSoftware ( $options = [] ) : nothing Make a select box for software to install
getPreAdditionalInfosForName ( )
getSearchOptions ( )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
showForSoftware ( Software $soft ) : nothing Show Versions of a software
showForm ( $ID, $options = [] ) : true Print the Software / version form

Method Details

cleanDBonPurge() public method

public cleanDBonPurge ( )

defineTabs() public method

public defineTabs ( $options = [] )

displayTabContentForItem() static public method

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI

dropdownForOneSoftware() static public method

Make a select box for software to install
static public dropdownForOneSoftware ( $options = [] ) : nothing
$options array of possible options: - name : string / name of the select (default is softwareversions_id) - softwares_id : integer / ID of the software (mandatory) - value : integer / value of the selected version - used : array / already used items
return nothing (print out an HTML select box)

getPreAdditionalInfosForName() public method

See also: CommonDBTM::getPreAdditionalInfosForName

getSearchOptions() public method

public getSearchOptions ( )

getTabNameForItem() public method

public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTypeName() static public method

static public getTypeName ( $nb )

showForSoftware() static public method

Show Versions of a software
static public showForSoftware ( Software $soft ) : nothing
$soft Software Software object
return nothing

showForm() public method

Print the Software / version form
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

Property Details

$dohistory public_oe property

From CommonDBTM
public $dohistory

$items_id public_oe static_oe property

public static $items_id

$itemtype public_oe static_oe property

From CommonDBChild
public static $itemtype