PHP Class Computer, glpi

Inheritance: extends CommonDBTM
Datei anzeigen Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$devices Device container - format $device = array(ID,"device type","ID in device table","specificity value")
$dohistory From CommonDBTM
$rightname

Protected Properties

Property Type Description
$forward_entity_to
$usenotepad

Public Methods

Method Description
cleanDBonPurge ( )
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getLinkedItems ( ) : an Return the linked items (in computers_items)
getMenuShorcut ( )
getSearchOptions ( )
getSpecificMassiveActions ( $checkitem = NULL )
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb ) Name of the type
post_addItem ( )
post_deleteItem ( )
post_restoreItem ( )
post_updateItem ( $history = 1 )
prepareInputForAdd ( $input )
showForm ( $ID, $options = [] ) : Nothing Print the computer form
showOperatingSystem ( Computer $comp ) : Nothing Print the computer's operating system form
useDeletedToLockIfDynamic ( )

Method Details

cleanDBonPurge() public method

public cleanDBonPurge ( )

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)

getLinkedItems() public method

Return the linked items (in computers_items)
public getLinkedItems ( ) : an
return an array of linked items like array('Computer' => array(1,2), 'Printer' => array(5,6))

getMenuShorcut() static public method

See also: CommonGLPI::getMenuShorcut()
static public getMenuShorcut ( )

getSearchOptions() public method

public getSearchOptions ( )

getSpecificMassiveActions() public method

See also: CommonDBTM::getSpecificMassiveActions()
public getSpecificMassiveActions ( $checkitem = NULL )

getTabNameForItem() public method

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

getTypeName() static public method

Name of the type
static public getTypeName ( $nb )
$nb integer number of item in the type (default 0)

post_addItem() public method

public post_addItem ( )

post_deleteItem() public method

public post_deleteItem ( )

post_restoreItem() public method

public post_restoreItem ( )

post_updateItem() public method

See also: CommonDBTM::post_updateItem()
public post_updateItem ( $history = 1 )

prepareInputForAdd() public method

See also: CommonDBTM::prepareInputForAdd()
public prepareInputForAdd ( $input )

showForm() public method

Print the computer form
public showForm ( $ID, $options = [] ) : Nothing
$ID integer ID of the item
$options array - target for the Form - withtemplate template or basic computer
return Nothing (display)

showOperatingSystem() static public method

Print the computer's operating system form
static public showOperatingSystem ( Computer $comp ) : Nothing
$comp Computer Computer object
return Nothing (call to classes members)

useDeletedToLockIfDynamic() public method

See also: CommonDBTM::useDeletedToLockIfDynamic()

Property Details

$devices public_oe property

Device container - format $device = array(ID,"device type","ID in device table","specificity value")
public $devices

$dohistory public_oe property

From CommonDBTM
public $dohistory

$forward_entity_to protected_oe static_oe property

protected static $forward_entity_to

$rightname static_oe public_oe property

static public $rightname

$usenotepad protected_oe property

protected $usenotepad