public function __construct()
 {
     $tools = new tools();
     $this->login = $tools->getLogin();
     $communication = new Communication($this->login);
     if ($tools->checkActive() == "True") {
         if ($this->timeGone()) {
             $this->timeGone = true;
             $communication->tools->newTimestamp();
             $this->sendFailedRequests();
         }
         $this->checkUpdates();
         $this->updateIdealo();
     } else {
         $communication->dropErrorTable();
     }
     $tools->cleanTableIdealoRealtimeUpdate();
     echo 'DONE';
 }