/** * @since version 0.84 * * @see CommonDevice::getHTMLTableCellForItem() **/ static function getHTMLTableCellsForItem(HTMLTableRow $row = NULL, CommonDBTM $item = NULL, HTMLTableCell $father = NULL, array $options = array()) { $column_name = __CLASS__; if (isset($options['dont_display'][$column_name])) { return; } if (empty($item)) { if (empty($father)) { return; } $item = $father->getItem(); } if (in_array($item->getType(), NetworkPort::getNetworkPortInstantiations())) { $link = new Item_DeviceNetworkCard(); if ($link->getFromDB($item->fields['items_devicenetworkcards_id'])) { $device = $link->getOnePeer(1); if ($device) { $row->addCell($row->getHeaderByName($column_name), $device->getLink(), $father); } } } }