PHP Class CommonDevice, glpi

Inheritance: extends CommonDropdown
Afficher le fichier Open project: glpi-project/glpi Class Usage Examples

Méthodes publiques

Свойство Type Description
$can_be_translated
$dohistory From CommonDBTM
$rightname

Méthodes publiques

Méthode 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 méthode

Overloaded from CommonDBTM
public canUnrecurs ( ) : booleen
Résultat booleen

canView() static public méthode

static public canView ( )

defineTabs() public méthode

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

displayHeader() public méthode

public displayHeader ( )

displaySpecificTypeField() public méthode

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

getAdditionalFields() public méthode

public getAdditionalFields ( )

getDeviceTypes() static public méthode

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

getHTMLTableCellForItem() public méthode

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 méthode

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
Résultat nothing (elements added to $base)

getImportCriteria() public méthode

Criteria used for import function
public getImportCriteria ( )

getItem_DeviceType() static public méthode

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

getMenuContent() static public méthode

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

getNameField() static public méthode

See also: CommonDBTM::getNameField
static public getNameField ( ) : string
Résultat string

getSearchOptions() public méthode

public getSearchOptions ( )

getTypeName() static public méthode

static public getTypeName ( $nb )

import() public méthode

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

post_addItem() public méthode

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

post_updateItem() public méthode

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

post_workOnItem() public méthode

public post_workOnItem ( )

title() public méthode

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