/**
  * switches status to $mode and reload URL if available, returns false otherwise
  *
  * @param string $mode test OR prod OR off
  * @return bool
  */
 public function switchMode($mode)
 {
     if (!$this->statusIsAvailable($mode)) {
         CertissimLogger::insertLogKwixo(__FILE__, "Le mode '{$mode}' n'est pas reconnu. 'test' défini à la place.");
         $mode = 'test';
     }
     //switch the status to $mode
     $this->setStatus($mode);
     //reload URLs
     $this->loadURLs();
 }