Computer class. More...

List of all members.

Public Member Functions

 useDeletedToLockIfDynamic ()
 defineTabs ($options=array())
 post_restoreItem ()
 Actions done after the restore of the item.
 post_deleteItem ()
 Actions done after the DELETE (mark as deleted) of the item in the database.
 post_updateItem ($history=1)
 prepareInputForAdd ($input)
 post_addItem ()
 Actions done after the ADD of the item in the database.
 cleanDBonPurge ()
 Actions done when item is deleted from the database.
 showForm ($ID, $options=array())
 Print the computer form.
 getSelectLinkedItem ()
 Return the SQL command to retrieve linked object.
 getSpecificMassiveActions ($checkitem=NULL)
 showSpecificMassiveActionsParameters ($input=array())
 doSpecificMassiveActions ($input=array())
 getSearchOptions ()
 Get the Search options for the given Type.

Static Public Member Functions

static getTypeName ($nb=0)
 Name of the type.
static canCreate ()
 Have I the global right to "create" the Object May be overloaded if needed (ex KnowbaseItem)
static canView ()
 Have I the global right to "view" the Object.

Public Attributes

 $dohistory = true
 Make an history of the changes.
 $devices = array()
 Device container - format $device = array(ID,"device type","ID in device table","specificity value")

Static Protected Attributes

static $forward_entity_to
 Forward entity datas to linked items.

Detailed Description

Computer class.

Definition at line 41 of file computer.class.php.


Member Function Documentation

static canCreate ( ) [static]

Have I the global right to "create" the Object May be overloaded if needed (ex KnowbaseItem)

Returns:
booleen

Reimplemented from CommonDBTM.

Definition at line 64 of file computer.class.php.

References haveRight().

static canView ( ) [static]

Have I the global right to "view" the Object.

Default is true and check entity if the objet is entity assign

May be overloaded if needed

Returns:
booleen

Reimplemented from CommonDBTM.

Definition at line 69 of file computer.class.php.

References haveRight().

Actions done when item is deleted from the database.

Returns:
nothing

Reimplemented from CommonDBTM.

Definition at line 364 of file computer.class.php.

References $csl, $disk, and Item_Devices\cleanItemDeviceDBOnItemDelete().

defineTabs ( options = array())
See also:
CommonGLPI::defineTabs()

Reimplemented from CommonGLPI.

Definition at line 87 of file computer.class.php.

References $options, and CommonGLPI\addStandardTab().

doSpecificMassiveActions ( input = array())
See also:
CommonDBTM::doSpecificMassiveActions()

Reimplemented from CommonDBTM.

Definition at line 669 of file computer.class.php.

References $input, $inst, $res, and $val.

Get the Search options for the given Type.

This should be overloaded in Class

Returns:
an array of search options More information on https://forge.indepnet.net/wiki/glpi/SearchEngine

Reimplemented from CommonDBTM.

Definition at line 710 of file computer.class.php.

References $CFG_GLPI, __(), _n(), Location\getSearchOptionsToAdd(), and CommonDBTM\getTable().

Return the SQL command to retrieve linked object.

Returns:
a SQL command which return a set of (itemtype, items_id)

Reimplemented from CommonDBTM.

Definition at line 612 of file computer.class.php.

static getTypeName ( nb = 0) [static]

Name of the type.

Parameters:
$nbinteger number of item in the type (default 0)

Reimplemented from CommonGLPI.

Definition at line 59 of file computer.class.php.

References $nb, and _n().

Referenced by Computer_SoftwareLicense\getTabNameForItem(), ComputerDisk\showForComputer(), and Computer_SoftwareVersion\showForComputer().

Actions done after the DELETE (mark as deleted) of the item in the database.

Returns:
nothing

Reimplemented from CommonDBTM.

Definition at line 118 of file computer.class.php.

Actions done after the restore of the item.

Returns:
nothing

Reimplemented from CommonDBTM.

Definition at line 111 of file computer.class.php.

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

Reimplemented from CommonDBTM.

Definition at line 128 of file computer.class.php.

References $CFG_GLPI, $DB, $i, $item, $items, $query, $result, __(), and Session\addMessageAfterRedirect().

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

Reimplemented from CommonDBTM.

Definition at line 318 of file computer.class.php.

References $input.

showForm ( ID,
options = array() 
)

Print the computer form.

Parameters:
$IDinteger ID of the item
$optionsarray
  • target for the Form
  • withtemplate template or basic computer
Returns:
Nothing (display)

Definition at line 398 of file computer.class.php.

References $_SESSION, $CFG_GLPI, $DB, $options, __(), CommonGLPI\addDivForTabs(), Html\autocompletionTextField(), autoName(), Html\convDateTime(), Plugin\doHook(), CommonDBTM\dropdown(), CommonGLPI\getType(), Plugin\haveImport(), CommonDBTM\initForm(), CommonDBTM\showFormButtons(), CommonDBTM\showFormHeader(), and CommonGLPI\showTabs().

See also:
CommonDBTM::useDeletedToLockIfDynamic()
Since:
version 0.84

Reimplemented from CommonDBTM.

Definition at line 79 of file computer.class.php.


Member Data Documentation

$devices = array()

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

Definition at line 51 of file computer.class.php.

$dohistory = true

Make an history of the changes.

Reimplemented from CommonDBTM.

Definition at line 44 of file computer.class.php.

$forward_entity_to [static, protected]
Initial value:
 array('ComputerDisk','ComputerVirtualMachine',
                                               'Computer_SoftwareVersion', 'Infocom',
                                               'NetworkPort', 'ReservationItem')

Forward entity datas to linked items.

Reimplemented from CommonDBTM.

Definition at line 46 of file computer.class.php.


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