PHP Class ComputerVirtualMachine, glpi

Class to manage virtual machines
Inheritance: extends CommonDBChild
Exibir arquivo Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$dohistory
$items_id
$itemtype From CommonDBChild

Public Methods

Method Description
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
findVirtualMachine ( $fields = [] ) : the Find a virtual machine by uuid
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
getUUIDRestrictRequest ( $uuid ) : the Get correct uuid sql search for virtualmachines
post_getEmpty ( )
showForComputer ( Computer $comp ) : Nothing Print the computers disks
showForVirtualMachine ( Computer $comp ) : Nothing Show hosts for a virtualmachine
showForm ( $ID, $options = [] ) : true Print the version form

Method Details

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)

findVirtualMachine() static public method

Find a virtual machine by uuid
static public findVirtualMachine ( $fields = [] ) : the
return the ID of the computer that have this uuid or false otherwise

getTabNameForItem() public method

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

getTypeName() static public method

static public getTypeName ( $nb )

getUUIDRestrictRequest() static public method

Get correct uuid sql search for virtualmachines
static public getUUIDRestrictRequest ( $uuid ) : the
$uuid the uuid given
return the restrict which contains uuid, uuid with first block flipped, uuid with 3 first block flipped

post_getEmpty() public method

public post_getEmpty ( )

showForComputer() static public method

Print the computers disks
static public showForComputer ( Computer $comp ) : Nothing
$comp Computer Computer object
return Nothing (call to classes members)

showForVirtualMachine() static public method

Show hosts for a virtualmachine
static public showForVirtualMachine ( Computer $comp ) : Nothing
$comp Computer Computer object that represents the virtual machine
return Nothing (call to classes members)

showForm() public method

Print the version form
public showForm ( $ID, $options = [] ) : true
$ID integer ID of the item
$options array - target for the Form - computers_id ID of the computer for add process
return true if displayed false if item not found or not right to display

Property Details

$dohistory public_oe property

public $dohistory

$items_id public_oe static_oe property

public static $items_id

$itemtype public_oe static_oe property

From CommonDBChild
public static $itemtype