Esempio n. 1
0
 /**
  * @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;
 }
Esempio n. 2
0
 /**
  * @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;
 }