PHP Class ComputerDisk, 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 disks from a computer template to his clone
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
post_getEmpty ( )
showForComputer ( Computer $comp, $withtemplate = '' ) : Nothing Print the computers disks
showForm ( $ID, $options = [] ) : true Print the version form

Method Details

cloneComputer() static public method

Duplicate all disks 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)

getTabNameForItem() public method

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

getTypeName() static public method

static public getTypeName ( $nb )

post_getEmpty() public method

public post_getEmpty ( )

showForComputer() static public method

Print the computers disks
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

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 property

public $dohistory

$items_id public static property

public static $items_id

$itemtype public static property

From CommonDBChild
public static $itemtype