示例#1
0
 private function check_games()
 {
     $this->logger->debug('checking for applicable games');
     foreach (ModelGame::getGamesForProcessing() as $id_game) {
         try {
             $this->run_game((int) $id_game);
         } catch (ControllerException $ex) {
             $this->logger->fatal($ex);
             $this->errors[$id_game] = $ex->getMessage();
         } catch (LogicException $ex) {
             $this->logger->fatal($ex);
             $this->errors[$id_game] = $ex->getMessage();
         }
     }
 }