/** * @param int $id_game * @return bool - true on success * @throws GameAdministrationException */ public function deleteGame($id_game) { $id_game = intval($id_game); if (!$this->checkMod() && !$this->checkCreator($id_game)) { throw new GameAdministrationException('User not allowed to delete game.'); } ModelGame::deleteGame($id_game); return true; }