static public countForItem ( CommonDBTM $item ) : number | ||
$item | CommonDBTM | CommonDBTM object |
return | number |
static function countForItem(CommonDBTM $item)
{
return countElementsInTable('glpi_notepads', ['itemtype' => $item->getType(), 'items_id' => $item->getID()]);
}