Show documents associated to an item
static public showForItem ( CommonDBTM $item, $withtemplate = '' ) | ||
$item | CommonDBTM | CommonDBTM object for which associated documents must be displayed |
$withtemplate | (default '') |
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $self = new self(); if ($item->getType() == __CLASS__) { self::showAddPosition($item); } else { if ($item->getType() == "Location") { Document_Item::showForItem($item, $withtemplate); } else { if (in_array($item->getType(), self::getTypes(true))) { $self->showPluginFromItems(get_class($item), $item->getField('id')); } } } return true; }