PHP Class ComputerAntivirus, glpi

Inheritance: extends CommonDBChild
Show file Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$dohistory
$items_id
$itemtype From CommonDBChild

Public Methods

Method Description
cloneComputer ( $oldid, $newid ) Duplicate all antirivuses from a computer template to his clone
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getSearchOptionsToAdd ( )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
showForComputer ( Computer $comp, $withtemplate = '' ) : Nothing Print the computers antiviruses
showForm ( $ID, $options = [] ) : boolean Display form for antivirus

Method Details

cloneComputer() static public method

Duplicate all antirivuses from a computer template to his clone
static public cloneComputer ( $oldid, $newid )
$oldid
$newid

defineTabs() public method

See also: CommonGLPI::defineTabs()
public defineTabs ( $options = [] )

displayTabContentForItem() static public method

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

getSearchOptionsToAdd() static public method

static public getSearchOptionsToAdd ( )

getTabNameForItem() public method

See also: CommonGLPI::getTabNameForItem()
public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTypeName() static public method

static public getTypeName ( $nb )

showForComputer() static public method

Print the computers antiviruses
static public showForComputer ( Computer $comp, $withtemplate = '' ) : Nothing
$comp Computer Computer object
$withtemplate boolean Template or basic item (default '')
return Nothing (call to classes members)

showForm() public method

Display form for antivirus
public showForm ( $ID, $options = [] ) : boolean
$ID id of the antivirus
$options array
return boolean TRUE if form is ok

Property Details

$dohistory public property

public $dohistory

$items_id public static property

public static $items_id

$itemtype public static property

From CommonDBChild
public static $itemtype