/**
  * This function is used to import in one time all SNMP model in folder
  * fusioninventory/snmpmodels/
  */
 function importMass()
 {
     ini_set("max_execution_time", "0");
     $nb = 0;
     foreach (glob(GLPI_ROOT . '/plugins/fusioninventory/snmpmodels/*.xml') as $file) {
         $nb++;
     }
     echo "<table class='tab_cadre_fixe'>";
     echo "<tr class='tab_bg_1'>";
     echo "<th align='center'>";
     echo __('Importing SNMP models, please wait...', 'fusioninventory');
     echo "</th>";
     echo "</tr>";
     echo "<tr class='tab_bg_1'>";
     echo "<td align='center'>";
     Html::createProgressBar(__('Importing SNMP models, please wait...', 'fusioninventory'));
     $i = 0;
     foreach (glob(GLPI_ROOT . '/plugins/fusioninventory/snmpmodels/*.xml') as $file) {
         $this->import($file, 0, 1);
         $i++;
         if (substr($i, -1) == '0') {
             Html::changeProgressBarPosition($i, $nb, "{$i} / {$nb}");
         }
     }
     Html::changeProgressBarPosition($nb, $nb, "{$nb} / {$nb}");
     echo "</td>";
     echo "</table>";
     PluginFusioninventorySnmpmodelImportExport::exportDictionnaryFile();
 }