static function countForRoutetable(PluginRoutetablesRoutetable $item) { $types = implode("','", $item->getTypes()); if (empty($types)) { return 0; } return countElementsInTable('glpi_plugin_routetables_routetables_items', "`itemtype` IN ('{$types}')\n AND `plugin_routetables_routetables_id` = '" . $item->getID() . "'"); }