/** * @param int $wikiId * @return bool */ public function exists($wikiId) { $res = $this->databaseConnection->select("webmaster_sitemaps", array('wiki_id'), array("wiki_id" => $wikiId), __METHOD__); if ($res->fetchRow()) { return false; } return true; }
/** * @return int */ private function generateUserId() { $res = $this->databaseConnection->select("webmaster_user_accounts", array('max(user_id) as maxid'), array(), __METHOD__); return (int) $res->fetchObject()->maxid + 1; }