grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026. -------------------------------------------------------------------------- */ /** @file * @brief */ if (!defined('GLPI_ROOT')) { die("Sorry. You can't access this file directly"); } /// Class DeviceMotherboard class DeviceMotherboard extends CommonDevice { static protected $forward_entity_to = array('Item_DeviceMotherboard', 'Infocom'); static function getTypeName($nb=0) { return _n('System board', 'System boards', $nb); } function getAdditionalFields() { return array_merge(parent::getAdditionalFields(), array(array('name' => 'chipset', 'label' => __('Chipset'), 'type' => 'text'))); } function getSearchOptions() { $tab = parent::getSearchOptions(); $tab[11]['table'] = $this->getTable(); $tab[11]['field'] = 'chipset'; $tab[11]['name'] = __('Chipset'); $tab[11]['datatype'] = 'string'; return $tab; } /** * @since version 0.84 * * @see CommonDevice::getHTMLTableHeader() **/ static function getHTMLTableHeader($itemtype, HTMLTableBase $base, HTMLTableSuperHeader $super=NULL, HTMLTableHeader $father=NULL, array $options=array()) { $column = parent::getHTMLTableHeader($itemtype, $base, $super, $father, $options); if ($column == $father) { return $father; } switch ($itemtype) { case 'Computer' : Manufacturer::getHTMLTableHeader(__CLASS__, $base, $super, $father, $options); break; } } /** * @since version 0.84 * * @see CommonDevice::getHTMLTableCellForItem() **/ function getHTMLTableCellForItem(HTMLTableRow $row=NULL, CommonDBTM $item=NULL, HTMLTableCell $father=NULL, array $options=array()) { $column = parent::getHTMLTableCellForItem($row, $item, $father, $options); if ($column == $father) { return $father; } switch ($item->getType()) { case 'Computer' : Manufacturer::getHTMLTableCellsForItem($row, $this, NULL, $options); break; } } /** * Criteria used for import function * * @see CommonDevice::getImportCriteria() * * @since version 0.84 **/ function getImportCriteria() { return array('designation' => 'equal', 'manufacturers_id' => 'equal', 'chipset' => 'equal'); } } ?>