/** * @param $user_id * @throws GWTException */ public function deleteById($user_id) { $result = $this->databaseConnection->delete("webmaster_user_accounts", array("user_id" => $user_id)); if (!$result) { throw new GWTException("Cannot delete user by id ( id = " . $user_id . " ) "); } }
/** * @param $wikiId * @throws GWTException */ public function deleteAllByWikiId($wikiId) { $result = $this->databaseConnection->delete("webmaster_sitemaps", array("wiki_id" => $wikiId)); if (!$result) { throw new GWTException("Cannot delete sitemap by id ( id = " . $wikiId . " ) "); } }