PHP Class CommonDevice, glpi

Inheritance: extends CommonDropdown
显示文件 Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$can_be_translated
$dohistory From CommonDBTM
$rightname

Public Methods

Method Description
canUnrecurs ( ) : booleen Can I change recursive flag to false check if there is "linked" object in another entity
canView ( )
defineTabs ( $options = [] )
displayHeader ( )
displaySpecificTypeField ( $ID, $field = [] )
getAdditionalFields ( )
getDeviceTypes ( ) : array Get all the kind of devices available inside the system.
getHTMLTableCellForItem ( HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = [] )
getHTMLTableHeader ( $itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = [] ) : nothing
getImportCriteria ( ) Criteria used for import function
getItem_DeviceType ( ) : array Get the assiociated item_device associated with this device This method can be override, for instance by the plugin
getMenuContent ( )
getNameField ( ) : string
getSearchOptions ( )
getTypeName ( $nb )
import ( array $input ) : interger Import a device is not exists
post_addItem ( )
post_updateItem ( $history = 1 )
post_workOnItem ( )
title ( )

Method Details

canUnrecurs() public method

Overloaded from CommonDBTM
public canUnrecurs ( ) : booleen
return booleen

canView() static public method

static public canView ( )

defineTabs() public method

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

displayHeader() public method

public displayHeader ( )

displaySpecificTypeField() public method

See also: CommonDropdown::displaySpecificTypeField()
public displaySpecificTypeField ( $ID, $field = [] )

getAdditionalFields() public method

public getAdditionalFields ( )

getDeviceTypes() static public method

Get all the kind of devices available inside the system.
static public getDeviceTypes ( ) : array
return array of the types of CommonDevice available

getHTMLTableCellForItem() public method

public getHTMLTableCellForItem ( HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = [] )
$row HTMLTableRow HTMLTableRow object
$item CommonDBTM CommonDBTM object (default NULL)
$father HTMLTableCell HTMLTableCell object (default NULL)
$options array array

getHTMLTableHeader() static public method

static public getHTMLTableHeader ( $itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super = NULL, HTMLTableHeader $father = NULL, array $options = [] ) : nothing
$itemtype string the type of the item
$base HTMLTableBase HTMLTableBase object:the element on which adding the header (ie.: HTMLTableMain or HTMLTableGroup)
$super HTMLTableSuperHeader HTMLTableSuperHeader object: the super header (in case of adding to HTMLTableGroup) (default NULL)
$father HTMLTableHeader HTMLTableHeader object: the father of the current headers (default NULL)
$options array array parameter such as restriction
return nothing (elements added to $base)

getImportCriteria() public method

Criteria used for import function
public getImportCriteria ( )

getItem_DeviceType() static public method

Get the assiociated item_device associated with this device This method can be override, for instance by the plugin
static public getItem_DeviceType ( ) : array
return array of the types of CommonDevice available

getMenuContent() static public method

See also: CommonGLPI::getMenuContent() @since version 0.85
static public getMenuContent ( )

getNameField() static public method

See also: CommonDBTM::getNameField
static public getNameField ( ) : string
return string

getSearchOptions() public method

public getSearchOptions ( )

getTypeName() static public method

static public getTypeName ( $nb )

import() public method

Import a device is not exists
public import ( array $input ) : interger
$input array array of datas
return interger ID of existing or new Device

post_addItem() public method

See also: CommonDBTM::post_addItem()
public post_addItem ( )

post_updateItem() public method

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

post_workOnItem() public method

public post_workOnItem ( )

title() public method

public title ( )

Property Details

$can_be_translated public_oe property

public $can_be_translated

$dohistory public_oe property

From CommonDBTM
public $dohistory

$rightname static_oe public_oe property

static public $rightname