Example #1
0
 /**
  * @brief Returns true if wiki is public ("probably" its database exists)
  *
  * @desc Returns true if wiki is public which should mean its database exists.
  * However we noticed one case when wiki was public and its database doesn't exist.
  * If this case wasn't singular we'll be having to create maintance script which
  * will check wikis' databases and set right value to city_public field in DB.
  *
  * @author Andrzej 'nAndy' Lukaszewski <*****@*****.**>
  * @access public
  * @static
  *
  * @param integer $city_id wikia identifier in city_list
  *
  * @return boolean
  */
 public static function isPublic($city_id)
 {
     if (WikiFactory::getPublic($city_id) === 1) {
         return true;
     }
     return false;
 }