static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == 'Group') {
self::showForGroup($item);
} else {
if ($item->getType() == 'Notification') {
$target = self::getInstanceByType($item->getField('itemtype'), $item->getField('event'), array('entities_id' => $item->getField('entities_id')));
if ($target) {
$target->showForNotification($item);
}
}
}
return true;
}