List of all members.

Public Member Functions

 getAdditionalFields ()
 Return Additional Fields for this type.
 getSearchOptions ()
 Get search function for the class.
 title ()
 Display title above search engine.
 displayHeader ()
 getHTMLTableCellForItem (HTMLTableRow $row=NULL, CommonDBTM $item=NULL, HTMLTableCell $father=NULL, array $options=array())
 import (array $input)
 Import a device is not exists.
 getImportCriteria ()
 Criteria used for import function.

Static Public Member Functions

static canCreate ()
 Have I the right to "create" the Object.
static canView ()
 Have I the right to "view" the Object.
static getNameField ()
static getHTMLTableHeader ($itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super=NULL, HTMLTableHeader $father=NULL, array $options=array())

Detailed Description

Definition at line 40 of file commondevice.class.php.


Member Function Documentation

static canCreate ( ) [static]

Have I the right to "create" the Object.

MUST be overloaded for entity_dropdown

Returns:
booleen

Reimplemented from CommonDropdown.

Definition at line 43 of file commondevice.class.php.

References haveRight().

static canView ( ) [static]

Have I the right to "view" the Object.

MUST be overloaded for entity_dropdown

Returns:
booleen

Reimplemented from CommonDropdown.

Definition at line 48 of file commondevice.class.php.

References haveRight().

Reimplemented from CommonDropdown.

Definition at line 92 of file commondevice.class.php.

References CommonGLPI\getTypeName(), and Html\header().

Return Additional Fields for this type.

Reimplemented from CommonDropdown.

Reimplemented in DeviceNetworkCard, DeviceCase, DeviceControl, DeviceDrive, DeviceGraphicCard, DeviceHardDrive, DeviceMemory, DeviceMotherboard, DevicePowerSupply, DeviceProcessor, and DeviceSoundCard.

Definition at line 52 of file commondevice.class.php.

References __().

getHTMLTableCellForItem ( HTMLTableRow row = NULL,
CommonDBTM item = NULL,
HTMLTableCell father = NULL,
array $  options = array() 
)
Since:
version 0.84
Warning:
note the difference between getHTMLTableCellForItem and getHTMLTableCellsForItem
Parameters:
$rowHTMLTableRow object
$itemCommonDBTM object (default NULL)
$fatherHTMLTableCell object (default NULL)
$optionsarray

Reimplemented in DeviceNetworkCard, DeviceHardDrive, DeviceMemory, DeviceDrive, DeviceProcessor, DeviceControl, DeviceGraphicCard, DevicePowerSupply, DeviceSoundCard, DeviceCase, and DeviceMotherboard.

Definition at line 167 of file commondevice.class.php.

References $CFG_GLPI, $item, $options, __(), __s(), CommonDBTM\getID(), CommonDBTM\getLink(), CommonDBTM\getName(), and CommonGLPI\getType().

static getHTMLTableHeader ( itemtype,
HTMLTableBase base,
HTMLTableSuperHeader super = NULL,
HTMLTableHeader father = NULL,
array $  options = array() 
) [static]
Since:
version 0.84 get the HTMLTable Header for the current device according to the type of the item that is requesting
Parameters:
$itemtypestring the type of the item
$baseHTMLTableBase object:the element on which adding the header (ie.: HTMLTableMain or HTMLTableGroup)
$superHTMLTableSuperHeader object: the super header (in case of adding to HTMLTableGroup) (default NULL)
$fatherHTMLTableHeader object: the father of the current headers (default NULL)
$optionsarray parameter such as restriction
Returns:
nothing (elements added to $base)

Reimplemented in DeviceNetworkCard, DeviceHardDrive, DeviceProcessor, DeviceMemory, DeviceDrive, DeviceGraphicCard, DeviceControl, DevicePowerSupply, DeviceCase, DeviceMotherboard, and DeviceSoundCard.

Definition at line 125 of file commondevice.class.php.

References $itemtype, $options, HTMLTableBase\addHeader(), and CommonGLPI\getTypeName().

Criteria used for import function.

Since:
version 0.84

Reimplemented in DeviceHardDrive, DeviceMemory, DeviceDrive, DeviceProcessor, DeviceGraphicCard, DeviceCase, DeviceMotherboard, and DeviceNetworkCard.

Definition at line 261 of file commondevice.class.php.

Referenced by import().

static getNameField ( ) [static]
Since:
version 0.84
See also:
CommonDBTM::getNameField
Returns:
string

Reimplemented from CommonDBTM.

Definition at line 104 of file commondevice.class.php.

Get search function for the class.

Returns:
array of search option

Reimplemented from CommonDropdown.

Reimplemented in DeviceNetworkCard, DeviceHardDrive, DeviceMemory, DeviceDrive, DeviceProcessor, DeviceGraphicCard, DeviceControl, DevicePowerSupply, DeviceCase, DeviceMotherboard, and DeviceSoundCard.

Definition at line 60 of file commondevice.class.php.

References __(), and CommonDBTM\getTable().

import ( array $  input)

Import a device is not exists.

Parameters:
$inputarray of datas
Returns:
interger ID of existing or new Device

Reimplemented from CommonDropdown.

Reimplemented in DeviceNetworkCard.

Definition at line 220 of file commondevice.class.php.

References $DB, $field, $input, $query, $result, $where, CommonDBTM\add(), and getImportCriteria().

title ( )

Display title above search engine.

Returns:
nothing (HTML display if needed)

Reimplemented from CommonDropdown.

Definition at line 85 of file commondevice.class.php.

References _n(), Dropdown\getDeviceItemTypes(), CommonGLPI\getSearchURL(), and Dropdown\showItemTypeMenu().


The documentation for this class was generated from the following file: