static function countForDatabase(PluginDatabasesDatabase $item) { $types = implode("','", $item->getTypes()); if (empty($types)) { return 0; } return countElementsInTable('glpi_plugin_databases_databases_items', "`itemtype` IN ('{$types}')\n AND `plugin_databases_databases_id` = '" . $item->getID() . "'"); }