Esempio n. 1
0
 static function isInError($type, $ID, $contents = null)
 {
     $msgerr = "";
     $date = date("Y-m-d");
     echo "<td>";
     echo "<span class='plugin_manufacturersimports_import_KO'>";
     echo __('Import failed', 'manufacturersimports') . " (";
     echo Html::convdate($date) . ")</span></td>";
     $temp = new PluginManufacturersimportsLog();
     $temp->deleteByCriteria(array('itemtype' => $type, 'items_id' => $ID));
     //insert base locale
     $values["import_status"] = 2;
     $values["items_id"] = $ID;
     $values["itemtype"] = $type;
     $values["date_import"] = $date;
     $log = new PluginManufacturersimportsLog();
     $log->add($values);
     if (!empty($contents)) {
         $msgerr = __('Connection failed/data download from manufacturer web site', 'manufacturersimports');
     }
     echo "<td>{$msgerr}</td>";
 }