Ejemplo n.º 1
0
 /**
  * Called by Core::init(), this initializes Core::$countryPlugins.
  * @access private
  */
 private static function initCountries()
 {
     if (!Core::$settingsFileExists) {
         return;
     }
     self::$countryPlugins = CountryPluginHelper::getCountryPlugins();
 }
Ejemplo n.º 2
0
 public function install()
 {
     return CountryPluginHelper::populateDB($this->countryName, $this->countrySlug, $this->countryData);
 }
 /**
  * AjaxRequest objects are automatically processed when they are created, based on the unique $action
  * value. The result of the call is stored in $response to be handled however you need (e.g. output
  * as JSON, XML etc) - or an Exception is thrown if something went wrong. Exceptions are used SOLELY for
  * program errors: not for user-entry errors.
  */
 public function __construct($action, $post = array())
 {
     if (empty($action)) {
         throw new Exception("no_action_specified");
         return;
     }
     $this->action = $action;
     $post = Utils::sanitize($post);
     switch ($this->action) {
         // ------------------------------------------------------------------------------------
         // INSTALLATION
         // ------------------------------------------------------------------------------------
         // a fresh install assumes it's a blank slate: no database tables, no settings file
         case "installationTestDbSettings":
             Core::init("installation");
             list($success, $content) = Database::testDbSettings($post["dbHostname"], $post["dbName"], $post["dbUsername"], $post["dbPassword"]);
             $this->response["success"] = $success;
             $this->response["content"] = $content;
             break;
         case "installationCreateSettingsFile":
             Core::init("installation");
             if (Core::checkSettingsFileExists()) {
                 $this->response["success"] = 0;
                 $this->response["content"] = "Your settings.php file already exists.";
                 return;
             } else {
                 list($success, $content) = Installation::createSettingsFile($post["dbHostname"], $post["dbName"], $post["dbUsername"], $post["dbPassword"], $post["dbTablePrefix"]);
                 $this->response["success"] = $success;
                 $this->response["content"] = $content;
             }
             break;
         case "installationCreateDatabase":
             Core::init("installation_db_ready");
             list($success, $content) = Installation::createDatabase();
             if (!$success) {
                 $this->response["success"] = 0;
                 $this->response["content"] = $content;
                 return;
             }
             // always create the administrator account. If the user chose the anonymous setup, all values
             // will be blank and all configurations will be associated with this (anonymous) user
             $adminAccount = array("accountType" => "admin", "firstName" => $post["firstName"], "lastName" => $post["lastName"], "email" => $post["email"], "password" => $post["password"]);
             Account::createAccount($adminAccount);
             // make note of the fact that we've passed this installation step
             Settings::setSetting("userAccountSetup", $post["userAccountSetup"]);
             Settings::setSetting("installationStepComplete_Core", "yes");
             $this->response["success"] = 1;
             $this->response["content"] = "";
             break;
         case "installationDataTypes":
             Core::init("installation_db_ready");
             $index = $post["index"];
             $groupedDataTypes = DataTypePluginHelper::getDataTypePlugins("installion_db_ready", false);
             $dataTypes = DataTypePluginHelper::getDataTypeList($groupedDataTypes);
             if ($index >= count($dataTypes)) {
                 $this->response["success"] = 1;
                 $this->response["content"] = "";
                 $this->response["isComplete"] = true;
             } else {
                 // attempt to install this data type
                 $currDataType = $dataTypes[$index];
                 $this->response["dataTypeName"] = $currDataType->getName();
                 $this->response["dataTypeFolder"] = $currDataType->folder;
                 $this->response["isComplete"] = false;
                 try {
                     list($success, $content) = $currDataType->install();
                     $this->response["success"] = $success;
                     $this->response["content"] = $content;
                 } catch (Exception $e) {
                     $this->response["success"] = false;
                     $this->response["content"] = "Unknown error.";
                 }
             }
             break;
         case "installationSaveDataTypes":
             Core::init("installation_db_ready");
             $folders = $post["folders"];
             $response = Settings::setSetting("installedDataTypes", $folders);
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["errorMessage"];
             break;
         case "installationExportTypes":
             Core::init("installation_db_ready");
             $index = $post["index"];
             $exportTypes = ExportTypePluginHelper::getExportTypePlugins("installation_db_ready", false);
             if ($index >= count($exportTypes)) {
                 $this->response["success"] = 1;
                 $this->response["content"] = "";
                 $this->response["isComplete"] = true;
             } else {
                 // attempt to install this data type
                 $currExportType = $exportTypes[$index];
                 $this->response["exportTypeName"] = $currExportType->getName();
                 $this->response["exportTypeFolder"] = $currExportType->folder;
                 $this->response["isComplete"] = false;
                 try {
                     list($success, $content) = $currExportType->install();
                     $this->response["success"] = $success;
                     $this->response["content"] = $content;
                 } catch (Exception $e) {
                     $this->response["success"] = false;
                     $this->response["content"] = "Unknown error.";
                 }
             }
             break;
         case "installationSaveExportTypes":
             Core::init("installation_db_ready");
             $folders = $post["folders"];
             $response = Settings::setSetting("installedExportTypes", $folders);
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["errorMessage"];
             break;
         case "installationCountries":
             Core::init("installation_db_ready");
             $index = $post["index"];
             $countryPlugins = CountryPluginHelper::getCountryPlugins(false);
             if ($index >= count($countryPlugins)) {
                 $this->response["success"] = 1;
                 $this->response["content"] = "";
                 $this->response["isComplete"] = true;
             } else {
                 // attempt to install this data type
                 $currCountryPlugin = $countryPlugins[$index];
                 $this->response["countryName"] = $currCountryPlugin->getName();
                 $this->response["countryFolder"] = $currCountryPlugin->folder;
                 $this->response["isComplete"] = false;
                 try {
                     // always run the uninstallation function first to ensure any old data is all cleared out
                     $currCountryPlugin->uninstall();
                     list($success, $content) = $currCountryPlugin->install();
                     $this->response["success"] = $success;
                     $this->response["content"] = $content;
                 } catch (Exception $e) {
                     $this->response["success"] = false;
                     $this->response["content"] = "Unknown error.";
                 }
             }
             break;
         case "installationSaveCountries":
             Core::init("installation_db_ready");
             $folders = $post["folders"];
             $response = Settings::setSetting("installedCountries", $folders);
             $response = Settings::setSetting("installationComplete", "yes");
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["errorMessage"];
             break;
         case "generateInPage":
             Core::init("generation");
             $gen = new Generator($_POST);
             $response = $gen->generate();
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["content"];
             $this->response["isComplete"] = $response["isComplete"];
             break;
             // ------------------------------------------------------------------------------------
             // USER ACCOUNTS
             // ------------------------------------------------------------------------------------
         // ------------------------------------------------------------------------------------
         // USER ACCOUNTS
         // ------------------------------------------------------------------------------------
         case "getAccount":
             Core::init();
             $response = Core::$user->getAccount();
             $this->response["success"] = true;
             $this->response["content"] = $response;
             break;
         case "getUsers":
             Core::init();
             $response = Core::$user->getUsers();
             $this->response["success"] = $response["success"];
             if (isset($response["accounts"])) {
                 $this->response["content"] = $response["accounts"];
             }
             break;
         case "createAccount":
             Core::init();
             if (!Core::checkIsLoggedIn()) {
                 $this->response["success"] = false;
                 $this->response["errorCode"] = ErrorCodes::NOT_LOGGED_IN;
             } else {
                 if (Core::$user->getAccountType() != "admin") {
                     $this->response["success"] = false;
                     $this->response["errorCode"] = ErrorCodes::NON_ADMIN;
                 } else {
                     $accountInfo = $post;
                     $accountInfo["accountType"] = "user";
                     $response = Account::createAccount($accountInfo);
                     $this->response["success"] = true;
                 }
             }
             break;
         case "deleteAccount":
             Core::init();
             if (!Core::checkIsLoggedIn()) {
                 $this->response["success"] = false;
                 $this->response["errorCode"] = ErrorCodes::NOT_LOGGED_IN;
             } else {
                 if (Core::$user->getAccountType() != "admin") {
                     $this->response["success"] = false;
                     $this->response["errorCode"] = ErrorCodes::NON_ADMIN;
                 } else {
                     $accountID = $post["accountID"];
                     $response = Core::$user->deleteAccount($accountID);
                     $this->response["success"] = true;
                 }
             }
             break;
             // updates the current logged in user's info
         // updates the current logged in user's info
         case "updateAccount":
             Core::init();
             if (!Core::checkIsLoggedIn()) {
                 $this->response["success"] = false;
                 $this->response["errorCode"] = ErrorCodes::NOT_LOGGED_IN;
             } else {
                 if (Core::$user->isAnonymous()) {
                     $this->response["success"] = false;
                     $this->response["errorCode"] = ErrorCodes::INVALID_REQUEST;
                 } else {
                     $accountID = $post["accountID"];
                     $this->response = Core::$user->updateAccount($accountID, $post);
                 }
             }
             break;
         case "saveConfiguration":
             Core::init();
             $response = Core::$user->saveConfiguration($post);
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["message"];
             if (isset($response["lastUpdated"])) {
                 $this->response["lastUpdated"] = $response["lastUpdated"];
             }
             break;
         case "deleteDataSets":
             Core::init();
             $configurationIDs = $post["configurationIDs"];
             $response = Core::$user->deleteConfigurations($configurationIDs);
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["message"];
             break;
         case "saveDataSetVisibilityStatus":
             Core::init();
             $configurationID = $post["configurationID"];
             $status = $post["status"];
             $time = $post["time"];
             $response = Core::$user->saveDataSetVisibilityStatus($configurationID, $status, $time);
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["message"];
             if (isset($response["newStatus"])) {
                 $this->response["newStatus"] = $response["newStatus"];
             }
             break;
         case "getPublicDataSet":
             Core::init();
             $configurationID = $post["dataSetID"];
             $response = Core::$user->getPublicDataSet($configurationID);
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["message"];
             break;
         case "login":
             Core::init();
             $email = $post["email"];
             $password = $post["password"];
             $response = Account::login($email, $password);
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["message"];
             break;
             // for single
         // for single
         case "logout":
             Core::init();
             if (!Core::checkIsLoggedIn()) {
                 $this->response["success"] = true;
             } else {
                 if (!Core::$user->isAnonymous()) {
                     Core::$user->logout();
                     $this->response["success"] = true;
                 }
             }
             break;
         case "resetPassword":
             Core::init();
             $email = $post["email"];
             $response = Account::resetPassword($email);
             $this->response["success"] = $response["success"];
             $this->response["content"] = $response["message"];
             break;
     }
 }
 private function setCountries()
 {
     $index = $this->post["index"];
     $countryPlugins = CountryPluginHelper::getCountryPlugins(false);
     if ($index >= count($countryPlugins)) {
         $this->response["success"] = 1;
         $this->response["content"] = "";
         $this->response["isComplete"] = true;
     } else {
         // attempt to install this country
         $currCountryPlugin = $countryPlugins[$index];
         $this->response["countryName"] = $currCountryPlugin->getName();
         $this->response["countryFolder"] = $currCountryPlugin->folder;
         $this->response["isComplete"] = false;
         try {
             // always run the uninstallation function first to ensure any old data is all cleared out
             $currCountryPlugin->uninstall();
             list($success, $content) = $currCountryPlugin->install();
             $this->response["success"] = $success;
             $this->response["content"] = $content;
         } catch (Exception $e) {
             $this->response["success"] = false;
             $this->response["content"] = "Unknown error.";
         }
     }
 }
Ejemplo n.º 5
0
 private function installCountries()
 {
     $countryPlugins = CountryPluginHelper::getCountryPlugins(false);
     $hasError = false;
     $results = array();
     $count = 0;
     $folders = array();
     foreach ($countryPlugins as $currCountry) {
         // ensure the country uninstalls itself first
         $currCountry->uninstall();
         try {
             list($success, $content) = $currCountry->install();
             if (!$success) {
                 $hasError = true;
                 break;
             }
             $folder = $currCountry->getFolder();
             $results[] = array("name" => $currCountry->getName(), "folder" => $folder);
             $folders[] = $folder;
             $count++;
         } catch (Exception $e) {
             $hasError = true;
             break;
         }
     }
     // need error handling here
     Settings::setSetting("installedCountries", implode(",", $folders));
     $this->response["success"] = !$hasError;
     $this->response["content"] = array("total" => $count, "results" => $results);
 }
 public function install()
 {
     $data = array(array("regionName" => "Australian Capital Territories", "regionShort" => "AC", "regionSlug" => "australian_capital_territories", "weight" => "3", "cities" => array("Canberra")), array("regionName" => "New South Wales", "regionShort" => "NS", "regionSlug" => "new_south_wales", "weight" => "69", "cities" => array("Sydney", "Albury", "Armidale", "Bathurst", "Blue Mountains", "Broken Hill", "Campbelltown", "Cessnock", "Dubbo", "Goulburn", "Grafton", "Lithgow", "Liverpool", "Newcastle", "Orange", "Parramatta", "Penrith", "Queanbeyan", "Tamworth", "Wagga Wagga", "Wollongong")), array("regionName" => "Northern Territory", "regionShort" => "NT", "regionSlug" => "northern_territory", "weight" => "2", "cities" => array("Darwin", "Palmerston")), array("regionName" => "Queensland", "regionShort" => "QL", "regionSlug" => "queensland", "weight" => "42", "cities" => array("Brisbane", "Bundaberg", "Cairns", "Caloundra", "Charters Towers", "Gladstone", "Gold Coast", "Hervey Bay", "Ipswich", "Logan City", "Mackay", "Maryborough", "Mount Isa", "Redcliffe", "Redlands", "Rockhampton", "Toowoomba", "Townsville")), array("regionName" => "South Australia", "regionShort" => "SA", "regionSlug" => "south_australia", "weight" => "16", "cities" => array("Adelaide", "Mount Gambier", "Murray Bridge", "Port Augusta", "Port Pirie", "Port Lincoln", "Victor Harbor", "Whyalla")), array("regionName" => "Tasmania", "regionShort" => "TA", "regionSlug" => "tasmania", "weight" => "5", "cities" => array("Greater Hobart", "Burnie", "Devonport", "Launceston")), array("regionName" => "Victoria", "regionShort" => "VI", "regionSlug" => "victoria", "weight" => "52", "cities" => array("Melbourne", "Ararat", "Bairnsdale", "Benalla", "Ballarat", "Bendigo", "Belgrave", "Dandenong", "Frankston", "Geelong", "Hamilton", "Horsham", "Melton", "Moe", "Morwell", "Mildura", "Sale", "Shepparton", "Swan Hill", "Traralgon", "Wangaratta", "Warrnambool", "Wodonga")), array("regionName" => "Western Australia", "regionShort" => "WA", "regionSlug" => "western_australia", "weight" => "21", "cities" => array("Perth", "Albany", "Armadale", "Bayswater", "Belmont", "Bunbury", "Canning", "Cockburn", "Fremantle", "Geraldton-Greenough", "Gosnells", "Joondalup", "Kalgoorlie-Boulder", "Mandurah", "Melville", "Nedlands", "Rockingham", "South Perth", "Stirling", "Subiaco", "Swan", "Wanneroo")));
     return CountryPluginHelper::populateDB($this->countryName, $this->countrySlug, $data);
 }
 public function install()
 {
     $data = array(array("regionName" => 'Alabama', "regionShort" => 'AL', "regionSlug" => 'alabama', "weight" => 2, "cities" => array("Birmingham", "Montgomery", "Mobile", "Huntsville", "Tuscaloosa", "Birmingham", "Montgomery", "Mobile", "Huntsville", "Tuscaloosa")), array("regionName" => 'Alaska', "regionShort" => 'AK', "regionSlug" => 'alaska', "weight" => 2, "cities" => array("Anchorage", "Fairbanks", "Juneau", "College", "Anchorage", "Fairbanks", "Juneau", "College", "Ketchikan")), array("regionName" => 'Arizona', "regionShort" => 'AZ', "regionSlug" => 'arizona', "weight" => 2, "cities" => array("Phoenix", "Tucson", "Mesa", "Glendale", "Chandler")), array("regionName" => 'Arkansas', "regionShort" => 'AK', "regionSlug" => 'arkansas', "weight" => 2, "cities" => array("Little Rock", "Fort Smith", "Fayetteville", "Springdale", "Jonesboro")), array("regionName" => 'California', "regionShort" => 'CA', "regionSlug" => 'california', "weight" => 2, "cities" => array("Los Angeles", "San Diego", "San Jose", "San Francisco", "Fresno", "Sacramento")), array("regionName" => 'Colorado', "regionShort" => 'CO', "regionSlug" => 'colorado', "weight" => 2, "cities" => array("Denver", "Colorado Springs", "Aurora", "Lakewood", "Fort Collins")), array("regionName" => 'Connecticut', "regionShort" => 'CT', "regionSlug" => 'connecticut', "weight" => 2, "cities" => array("Bridgeport", "New Haven", "Hartford", "Stamford", "Waterbury")), array("regionName" => 'Delaware', "regionShort" => 'DE', "regionSlug" => 'delaware', "weight" => 2, "cities" => array("Wilmington", "Dover", "Newark", "Pike Creek", "Bear")), array("regionName" => 'Florida', "regionShort" => 'FL', "regionSlug" => 'florida', "weight" => 2, "cities" => array("Jacksonville", "Miami", "Tampa", "St. Petersburg", "Orlando", "Tallahassee")), array("regionName" => 'Georgia', "regionShort" => 'GA', "regionSlug" => 'georgia', "weight" => 2, "cities" => array("Georgia", "Atlanta", "Augusta", "Columbus", "Savannah", "Athens")), array("regionName" => 'Hawaii', "regionShort" => 'HI', "regionSlug" => 'hawaii', "weight" => 2, "cities" => array("Honolulu", "Hilo", "Kailua", "Kaneohe", "Kapolei")), array("regionName" => 'Idaho', "regionShort" => 'ID', "regionSlug" => 'idaho', "weight" => 2, "cities" => array("Boise", "Nampa", "Meridian", "Pocatello", "Idaho Falls")), array("regionName" => 'Illinois', "regionShort" => 'IL', "regionSlug" => 'illinois', "weight" => 2, "cities" => array("Chicago", "Aurora", "Rockford", "Joliet", "Naperville", "Springfield")), array("regionName" => 'Indiana', "regionShort" => 'IN', "regionSlug" => 'indiana', "weight" => 2, "cities" => array("Indianapolis", "Fort Wayne", "Evansville", "South Bend", "Gary")), array("regionName" => 'Iowa', "regionShort" => 'IA', "regionSlug" => 'iowa', "weight" => 2, "cities" => array("Des Moines", "Cedar Rapids", "Davenport", "Sioux City", "Iowa City")), array("regionName" => 'Kansas', "regionShort" => 'KS', "regionSlug" => 'kansas', "weight" => 2, "cities" => array("Wichita", "Overland Park", "Kansas City", "Topeka", "Olathe")), array("regionName" => 'Kentucky', "regionShort" => 'KY', "regionSlug" => 'kentucky', "weight" => 2, "cities" => array("Louisville", "Lexington", "Owensboro", "Bowling Green", "Covington", "Frankfort")), array("regionName" => 'Louisiana', "regionShort" => 'LA', "regionSlug" => 'louisiana', "weight" => 2, "cities" => array("New Orleans", "Baton Rouge", "Shreveport", "Metairie", "Lafayette")), array("regionName" => 'Maine', "regionShort" => 'ME', "regionSlug" => 'maine', "weight" => 2, "cities" => array("Portland", "Lewiston", "Bangor", "South Portland", "Auburn", "Augusta")), array("regionName" => 'Maryland', "regionShort" => 'MD', "regionSlug" => 'maryland', "weight" => 2, "cities" => array("Baltimore", "Rockville", "Frederick", "Gaithersburg", "Columbia", "Annapolis")), array("regionName" => 'Massachusetts', "regionShort" => 'MA', "regionSlug" => 'massachusetts', "weight" => 2, "cities" => array("Boston", "Worcester", "Springfield", "Lowell", "Cambridge")), array("regionName" => 'Michigan', "regionShort" => 'MI', "regionSlug" => 'michigan', "weight" => 2, "cities" => array("Detroit", "Grand Rapids", "Warren", "Sterling Heights", "Flint", "Lansing")), array("regionName" => 'Minnesota', "regionShort" => 'MN', "regionSlug" => 'minnesota', "weight" => 2, "cities" => array("Minneapolis", "Saint Paul", "Rochester", "Duluth", "Bloomington")), array("regionName" => 'Mississippi', "regionShort" => 'MS', "regionSlug" => 'mississippi', "weight" => 2, "cities" => array("Jackson", "Gulfport", "Hattiesburg", "Biloxi", "Southaven")), array("regionName" => 'Missouri', "regionShort" => 'MO', "regionSlug" => 'missouri', "weight" => 2, "cities" => array("Kansas City", "Saint Louis", "Springfield", "Independence", "Columbia", "Jefferson City")), array("regionName" => 'Montana', "regionShort" => 'MT', "regionSlug" => 'montana', "weight" => 2, "cities" => array("Billings", "Missoula", "Great Falls", "Butte", "Bozeman", "Helena")), array("regionName" => 'Nebraska', "regionShort" => 'NE', "regionSlug" => 'nebraska', "weight" => 2, "cities" => array("Omaha", "Lincoln", "Bellevue", "Grand Island", "Kearney")), array("regionName" => 'Nevada', "regionShort" => 'NV', "regionSlug" => 'nevada', "weight" => 2, "cities" => array("Las Vegas", "Henderson", "North Las Vegas", "Reno", "Paradise", "Carson City")), array("regionName" => 'Ohio', "regionShort" => 'OH', "regionSlug" => 'ohio', "weight" => 2, "cities" => array("Columbus", "Cleveland", "Cincinnati", "Toledo", "Akron")), array("regionName" => 'Oklahoma', "regionShort" => 'OK', "regionSlug" => 'oklahoma', "weight" => 2, "cities" => array("Oklahoma City", "Tulsa", "Norman", "Lawton", "Broken Arrow")), array("regionName" => 'Oregon', "regionShort" => 'OR', "regionSlug" => 'oregon', "weight" => 2, "cities" => array("Portland", "Eugene", "Salem", "Gresham", "Hillsboro")), array("regionName" => 'Pennsylvania', "regionShort" => 'PA', "regionSlug" => 'pennsylvania', "weight" => 2, "cities" => array("Philadelphia", "Pittsburgh", "Allentown", "Erie", "Reading", "Harrisburg")), array("regionName" => 'Tennessee', "regionShort" => 'TN', "regionSlug" => 'tennessee', "weight" => 2, "cities" => array("Memphis", "Nashville", "Knoxville", "Chattanooga", "Clarksville")), array("regionName" => 'Texas', "regionShort" => 'TX', "regionSlug" => 'texas', "weight" => 2, "cities" => array("Houston", "San Antonio", "Dallas", "Austin", "Fort Worth")), array("regionName" => 'Utah', "regionShort" => 'UT', "regionSlug" => 'utah', "weight" => 2, "cities" => array("Salt Lake City", "West Valley City", "Provo", "West Jordan", "Sandy")), array("regionName" => 'Vermont', "regionShort" => 'VT', "regionSlug" => 'vermont', "weight" => 2, "cities" => array("Burlington", "Essex", "Rutland", "Colchester", "South Burlington", "Montpelier")), array("regionName" => 'Virginia', "regionShort" => 'VA', "regionSlug" => 'virginia', "weight" => 2, "cities" => array("Virginia Beach", "Norfolk", "Chesapeake", "Richmond", "Newport News")), array("regionName" => 'Washington', "regionShort" => 'WA', "regionSlug" => 'washington', "weight" => 2, "cities" => array("Seattle", "Spokane", "Tacoma", "Vancouver", "Bellevue", "Olympia")), array("regionName" => 'Wisconsin', "regionShort" => 'WI', "regionSlug" => 'wisconsin', "weight" => 2, "cities" => array("Milwaukee", "Madison", "Green Bay", "Kenosha", "Racine")), array("regionName" => 'Wyoming', "regionShort" => 'WY', "regionSlug" => 'wyoming', "weight" => 2, "cities" => array("Wyoming", "Cheyenne", "Casper", "Laramie", "Gillette", "Rock Springs")));
     return CountryPluginHelper::populateDB($this->countryName, $this->countrySlug, $data);
 }
 public function install()
 {
     $data = array(array("regionName" => "Drenthe", "regionShort" => "Dr", "regionSlug" => "drenthe", "weight" => "5", "cities" => array("Assen", "Coevorden", "Emmen", "Hoogeveen", "Meppel")), array("regionName" => "Flevoland", "regionShort" => "Fl", "regionSlug" => "flevoland", "weight" => "1", "cities" => array("Almere", "Lelystad")), array("regionName" => "Friesland", "regionShort" => "Fr", "regionSlug" => "friesland", "weight" => "6", "cities" => array("Bolsward", "Dokkum", "Drachten", "Franeker", "Harlingen", "Heerenveen", "Hindeloopen", "IJlst", "Leeuwarden", "Sloten", "Sneek", "Stavoren", "Workum")), array("regionName" => "Gelderland", "regionShort" => "Gl", "regionSlug" => "gelderland", "weight" => "20", "cities" => array("Apeldoorn", "Arnhem", "Buren", "Culemborg", "Doetinchem", "Ede", "Groenlo", "Harderwijk", "Hattem", "Huissen", "Nijkerk", "Nijmegen", "Tiel", "Wageningen", "Winterswijk", "Zaltbommel", "Zutphen")), array("regionName" => "Limburg", "regionShort" => "L.", "regionSlug" => "limburg", "weight" => "11", "cities" => array("Geleen", "Heerlen", "Kerkrade", "Maastricht", "Roermond", "Sittard", "Thorn", "Valkenburg aan de Geul", "Venlo", "Weert", "Hasselt", "Sint-Lambrechts-Herk", "Wimmertingen", "Kermt", "Spalbeek", "Kuringen", "Stokrooie", "Stevoort", "Zonhoven", "Helchteren", "Houthalen", "Houthalen-Helchteren", "Berbroek", "Donk", "Herk-de-Stad", "Schulen", "Halen", "Loksbergen", "Zelem", "Heusden", "Heusden-Zolder", "Zolder", "Linkhout", "Lummen", "Meldert", "Alken", "Beringen", "Beverlo", "Koersel", "Paal", "Diepenbeek", "Genk", "Gellik", "Lanaken", "Neerharen", "Veldwezelt", "Rekem", "Eisden", "Leut", "Maasmechelen", "Mechelen-aan-de-Maas", "Meeswijk", "Opgrimbie", "Vucht", "Boorsem", "Uikhoven", "Kessenich", "Kinrooi", "Molenbeersel", "Ophoven", "Dilsen-Stokkem", "Elen", "Lanklaar", "Rotem", "Stokkem", "Opglabbeek", "As", "Niel-bij-As", "Ellikom", "Gruitrode", "Meeuwen", "Meeuwen-Gruitrode", "Neerglabbeek", "Wijshagen", "Maaseik", "Neeroeteren", "Opoeteren", "Zutendaal", "Berg", "Diets-Heur", "Haren", "Henis", "Kolmont", "Koninksem", "Lauw", "Mal", "Neerrepen", "Nerem", "Overrepen", "Piringen", "Riksingen", "Rutten", "s Herenelderen", "Sluizen", "Tongeren", "Vreren", "Widooie", "Herstappe", "Kortessem", "Vliermaalroot")), array("regionName" => "Noord Brabant", "regionShort" => "N.", "regionSlug" => "noord_brabant", "weight" => "24", "cities" => array("Bergen op Zoom", "Breda", "Eindhoven", "Geertruidenberg", "Grave", "Helmond", "Heusden", "Oosterhout", "Oss", "Ravenstein", "Roosendaal", "Tilburg", "Waalwijk")), array("regionName" => "Noord Holland", "regionShort" => "N.", "regionSlug" => "noord_holland", "weight" => "26", "cities" => array("Alkmaar", "Amstelveen", "Amsterdam", "Den Helder", "Edam", "Enkhuizen", "Haarlem", "Heerhugowaard", "Hilversum", "Hoofddorp", "Hoorn", "Laren", "Purmerend", "Medemblik", "Muiden", "Naarden", "Schagen", "Weesp", "Zaanstad")), array("regionName" => "Overijssel", "regionShort" => "Ov", "regionSlug" => "overijssel", "weight" => "11", "cities" => array("Almelo", "Deventer", "Enschede", "Hengelo", "Oldenzaal", "Zwolle")), array("regionName" => "Zuid Holland", "regionShort" => "Z.", "regionSlug" => "zuid_holland", "weight" => "12", "cities" => array("Alphen aan den Rijn", "Delft", "Dordrecht", "Gorinchem", "Gouda", "Leiden", "Rotterdam", "Spijkenisse", "The Hague", "Zoetermeer")), array("regionName" => "Utrecht", "regionShort" => "U.", "regionSlug" => "utrecht", "weight" => "4", "cities" => array("Amersfoort", "Leersum", "Nieuwegein", "Utrecht", "Veenendaal", "Woerden", "Zeist")), array("regionName" => "Zeeland", "regionShort" => "Zl", "regionSlug" => "zeeland", "weight" => "35", "cities" => array("Flushing", "Goes", "Hulst", "Middelburg", "Sluis", "Terneuzen", "Veere", "Zierikzee")));
     return CountryPluginHelper::populateDB($this->countryName, $this->countrySlug, $data);
 }
 public function install()
 {
     $data = array(array("regionName" => "Alberta", "regionShort" => "AB", "regionSlug" => "alberta", "weight" => "11", "cities" => array("Airdrie", "Alix", "Banff", "Barrhead", "Bearberry", "Beaumont", "Bon Accord", "Bonnyville", "Bonnyville Municipal District", "Bowden", "Breton", "Bruderheim", "Calgary", "Calmar", "Camrose", "Canmore", "Carstairs", "Castor", "Chestermere", "Clearwater Municipal District", "Coaldale", "Coalhurst", "Cochrane", "Crowsnest Pass", "Crystal Springs", "Devon", "Drayton Valley", "Drumheller", "Eckville", "Edmonton", "Fahler", "Fort Saskatchewan", "Gibbons", "Glendon", "Grande Prairie", "Grande Cache", "High Level", "Hines Creek", "Innisfail", "Irricana", "Jasper", "Kitscoty", "Lac La Biche County", "Lac Ste. Anne", "Lacombe", "Lacombe County", "Lakeland County", "Lamont", "Leduc", "Legal", "Lloydminster", "Lethbridge", "Mayerthorpe", "Medicine Hat", "Millet", "Morinville", "Mundare", "Nanton", "New Sarepta", "Okotoks", "Oyen", "Provost", "Parkland County", "Penhold", "Picture Butte", "Pincher Creek", "Ponoka", "Raymond", "Red Deer", "Redwater", "Rimbey", "Rocky Mountain House", "Rocky View", "Rycroft", "St. Albert", "St. Paul", "Sedgewick", "Smoky Lake", "Spruce Grove", "Stirling", "Strathcona County", "Stony Plain", "Sundrie", "Sunset Point", "Swan Hills", "Sylvan Lake", "Taber", "Tofield", "Trochu", "Valleyview", "Vegreville", "Vilna", "Wabamun", "Warburg", "Warspite", "Westlock", "Wetaskiwin", "Wood Buffalo", "Woodlands County", "Yellowhead County")), array("regionName" => "British Columbia", "regionShort" => "BC", "regionSlug" => "british_columbia", "weight" => "13", "cities" => array("100 Mile House", "Abbotsford", "Alert Bay", "Armstrong", "Belcarra", "Burnaby", "Burns Lake", "Cache Creek", "Cariboo Regional District", "Castlegar", "Chetwynd", "Chilliwack", "Coldstream", "Colwood", "Comox", "Coquitlam", "Cranbrook", "Dawson Creek", "Delta", "Fernie", "Duncan", "Fort St. John", "Fraser Lake", "Fraser-Fort George", "Gibsons", "Harrison Hot Springs", "Hope", "Houston", "Hudson's Hope", "Kelowna", "Kent", "Kimberly", "Kitimat", "Lake Cowichan", "Langford", "Langley", "Lions Bay", "Mission", "Maple Ridge", "Merritt", "Midway", "Nanaimo", "Nakusp", "Nelson", "New Westminster", "North Cowichan", "North Saanich", "North Vancouver", "Oliver", "Pemberton", "Penticton", "Pitt Meadows", "Port Alice", "Port Coquitlam", "Port Moody", "Prince George", "Qualicum Beach", "Richmond", "Salt Spring Island", "Silverton", "Smithers", "Sooke", "Sparwood", "Stewart", "Sunshine Coast Regional District", "Surrey", "Terrance", "Tumbler Ridge", "Ucluelet", "Vancouver", "Vanderhoof", "Victoria", "West Vancouver", "White Rock", "Williams Lake")), array("regionName" => "Manitoba", "regionShort" => "MB", "regionSlug" => "manitoba", "weight" => "4", "cities" => array('Winnipeg', 'Stonewall', 'Minitonas', 'Lourdes', 'Flin Flon', 'Daly', 'Brandon', 'Beausejour')), array("regionName" => "New Brunswick", "regionShort" => "NB", "regionSlug" => "new_brunswick", "weight" => "2", "cities" => array('Tracadie-Shelia', 'Sh�diac', 'Shippagan', 'Saint-L�onard', 'Saint John', 'Saint Andr�', 'Rothesay', 'Rexton', 'Quispamsis', 'Oromocto', 'New Maryland', 'Moncton', 'Miramichi', 'Grand Falls', 'Fredericton', 'Edmundston', 'Dieppe', 'Clare', 'Carlton')), array("regionName" => "Newfoundland and Labrador", "regionShort" => "NL", "regionSlug" => "newfoundland_and_labrador", "weight" => "2", "cities" => array('St. John\'s', 'Springdale', 'Spaniard\'s Bay', 'Rigolet', 'Paradise', 'Mount Pearl', 'McCallum', 'Marystown', 'Harbour Grace', 'Glovertown', 'Gander', 'Fogo', 'Fortune', 'Carbonear', 'Burin', 'Bonavista', 'Bay Roberts')), array("regionName" => "Northwest Territories", "regionShort" => "NT", "regionSlug" => "northwest_territories", "weight" => "1", "cities" => array("Yellowknife", "Wrigley", "Wha Ti", "Wekweti", "Tulita", "Tuktoyaktuk", "Tsiigehtchic", "Sachs Harbour", "Rae Lakes", "Rae-Edzo", "Paulatuk", "Norman Wells", "Lutsel K'e", "Kakisa", "Inuvik", "Holman", "Hay River", "Fort Smith", "Fort Simpson", "Fort Resolution", "Fort Providence", "Fort McPherson", "Fort Laird", "Fort Good Hope", "Enterprise", "Deline", "Coleville Lake", "Aklavik")), array("regionName" => "Nova Scotia", "regionShort" => "NS", "regionSlug" => "nova_scotia", "weight" => "1", "cities" => array('Municipal District', 'Town of Yarmouth', 'Wolfville', 'Pugwash', 'Pictou', 'New Glasgow', 'Halifax', 'Guysborough', 'Cumberland County', 'Cape Breton Island', 'Berwick', 'Baddeck', 'Argyle', 'Annapolis Royal', 'Annapolis County')), array("regionName" => "Nunavut", "regionShort" => "NU", "regionSlug" => "nunavut", "weight" => "1", "cities" => array("Arviat", "Cambridge Bay", "Gjoa Haven", "Pangnirtung", "Iqaluit")), array("regionName" => "Ontario", "regionShort" => "ON", "regionSlug" => "ontario", "weight" => "39", "cities" => array("Ajax", "Aurora", "Ancaster Town", "Barrie", "Bath", "Blind River", "Burlington", "Caledon", "Cobourg", "Cornwall", "Cumberland", "East Gwillimbury", "Essex", "Etobicoke", "Gloucester", "Goderich", "Grey County", "Guelph", "Hamilton", "Hearst", "Kapuskasing", "Kawartha Lakes", "Kearny", "King Township", "Kingston", "Kitchener", "Lakeshore", "Lanark County", "LaSalle", "Leamington", "Malahide", "Markham", "Merrickville-Wolford", "Midlands", "Township of Minden Hills", "Minto", "Newbury", "Newmarket", "Norfolk County", "North Bay", "Northumberland", "Orangeville", "Orilla", "Osgoode", "Ottawa", "Ottawa-Carleton", "Owen Sound", "Oxford County", "Pickering", "Port Hope", "Quinte West", "Ramara", "Renfrew", "Richmond Hill", "Russell", "Scarborough", "St. Catharines", "St. Thomas", "Greater Sudbury", "Tay", "Thorold", "Thunder Bay", "Toronto", "Valley East", "Vanier", "Vaughan", "Warwick", "Welland", "Whitby", "Whitchurch-Stouffville", "Whitewater Region Township", "Wilmont", "Windsor", "Woodstock")), array("regionName" => "Prince Edward Island", "regionShort" => "PE", "regionSlug" => "prince_edward_island", "weight" => "1", "cities" => array("Charlottetown", "Montague", "Stratford")), array("regionName" => "Quebec", "regionShort" => "QC", "regionSlug" => "quebec", "weight" => "23", "cities" => array("Amqui", "Cabano", "D�gelis", "La Matap�dia", "Price", "Rimouski", "Rivi�re-du-Loup", "Saint-Eug�ne-de-Ladri�re", "Sainte-Flavie", "Alma", "Chambord", "Chicoutimi", "Jonqui�re", "La Baie", "Labrecque", "Saguenay", "Saint-Honor�", "Saint-Prime", "Shipshaw", "Baie-Saint-Paul", "Beauport", "Cap-Rouge", "Deschambault", "Isle-aux-Coudres", "Lac-Serent", "Malbaie", "Neuville", "Pointe-au-Pic", "Qu�bec City", "Saint-Hilarion", "Saint-Urbain", "Batiscan", "Cap-de-la-Madeleine", "Champlain", "H�rouxville", "Pointe-du-Lac", "Saint-Georges", "Shawinigan", "Trois-Rivi�res", "Asbestos", "Richmond", "Sherbrooke", "Valcourt", "Anjou", "Baie-d'Urf�", "Beaconsfield", "C�te-Saint-Luc", "Dollard-des-Ormeaux", "Dorval", "Hampstead", "Kirkland", "Lachine", "LaSalle", "Montreal", "Outremont", "Pierrefonds", "Pointe-aux-Trembles", "Pointe-Claire", "Roxboro", "Saint-Laurent", "Saint-L�onard", "Saint-Pierre", "Senneville", "Verdun", "Westmount", "Aylmer", "Buckingham", "Cantley", "Chelsea", "Collines-de-l'Outaouais", "Gatineau", "Hull", "Ville de Maniwaki", "Mansfield-et-Pontefract", "Montebello", "Montpellier", "Namur", "Notre-Dame-de-la-Salette", "Shawville", "Thurso", "Dubuisson", "Malartic", "Notre-Dame-du-Nord", "Rouyn-Noranda", "Saint-Eug�ne-de-Guigues", "Baie-Comeau", "Fermont", "Kawawachikamach", "Matagami", "Caplan", "Carleton", "Gasp�", "Gespeg", "Maria", "Murdochville", "Cap-Saint-Ignace", "Charny", "L�vis")), array("regionName" => "Saskatchewan", "regionShort" => "SK", "regionSlug" => "saskatchewan", "weight" => "4", "cities" => array("Assiniboia", "Calder", "Canora", "Estevan", "Gravelbourg", "Hudson Bay", "Lang", "Langenburg", "Lloydminster", "Macklin", "Maple Creek", "Milestone", "Moose Jaw", "North Battleford", "Prince Albert", "Regina", "Saskatoon", "Weyburn", "Yorkton")), array("regionName" => "Yukon", "regionShort" => "YK", "regionSlug" => "yukon", "weight" => "1", "cities" => array("Whitehorse", "Watson Lake")));
     return CountryPluginHelper::populateDB($this->countryName, $this->countrySlug, $data);
 }
 public function install()
 {
     $data = array(array("regionName" => "Antwerpen", "regionShort" => "AN", "regionSlug" => "antwerpen", "weight" => "1", "cities" => array("Antwerpen", "Burcht", "Zwijndrecht", "Deurne", "Wijnegem", "Borgerhout", "Borsbeek", "Wommelgem", "Merksem", "Ekeren", "Herentals", "Morkhoven", "Noorderwijk", "Hallaar", "Heist-op-den-Berg", "Booischot", "Itegem", "Wiekevorst", "Schriek", "Herselt", "Ramsel", "Houtvenne", "Hulshout", "Westmeerbeek", "Massenhoven", "Viersel", "Zandhoven", "Pulderbos", "Pulle", "Olen", "Oevel", "Tongerlo", "Westerlo", "Zoerle-Parwijs", "Herenthout", "Gierle", "Lille", "Poederlee", "Wechelderzande", "Grobbendonk", "Bouwel", "Vorselaar", "Turnhout", "Rijkevorsel", "Hoogstraten", "Meer", "Minderhout", "Wortel", "Meerle", "Merksplas", "Beerse", "Vlimmeren", "Vosselaar", "Oud-Turnhout", "Arendonk", "Ravels", "Weelde", "Poppel", "Baarle-Hertog", "Malle", "Oostmalle", "Westmalle", "Mol", "Eindhout", "Laakdal", "Vorst", "Varendonk", "Veerle", "Geel", "Meerhout", "Kasterlee", "Lichtaart", "Tielen", "Retie", "Dessel", "Balen", "Olmen", "Koningshooikt", "Lier", "Broechem", "Emblem", "Oelegem", "Ranst", "Boechout", "Vremde", "Hove", "Lint", "Kontich", "Waarloos", "Bevel", "Kessel", "Nijlen", "Duffel", "Beerzel")), array("regionName" => "Brussels Hoofdstedelijk Gewest", "regionShort" => "BU", "regionSlug" => "brussels_hoofdstedelijk_gewest", "weight" => "1", "cities" => array("Brussel", "Laken", "Schaarbeek", "Etterbeek", "Elsene", "Sint-Gillis", "Anderlecht", "Sint-Jans-Molenbeek", "Koekelberg", "Sint-Agatha-Berchem", "Ganshoren", "Jette", "Neder-Over-Heembeek", "Haren", "Evere", "Sint-Pieters-Woluwe", "Oudergem", "Watermaal-Bosvoorde", "Ukkel", "Vorst", "Sint-Lambrechts-Woluwe", "Sint-Joost-ten-Node")), array("regionName" => "Waals-Brabant", "regionShort" => "WB", "regionSlug" => "waals_brabant", "weight" => "1", "cities" => array("Limal", "Waver", "Bierges", "La Hulpe", "Glimes", "Incourt", "Opprebais", "Pi�trebais", "Roux-Miroir", "Beauvechain", "Hamme-Mille", "l'Ecluse", "Nodebais", "Tourinnes-la-Grosse", "Bonlez", "Chaumont-Gistoux", "Corroy-le-Grand", "Dion-Valmont", "Longueville", "Rixensart", "Rosi�res", "Genval", "Ottignies", "Ottignies-Louvain-la-Neuve", "C�roux-Mousty", "Limelette", "Louvain-la-Neuve", "Enines", "Folx-les-Caves", "Jandrain-Jandrenouille", "Jauche", "Marilles", "Noduwez", "Orp-Jauche", "Orp-le-Grand", "H�l�cine", "Linsmeau", "Neerheylissem", "Opheylissem", "Mal�ves-Sainte-Marie-Wastines", "Orbais", "Perwez", "Thorembais-les-B�guines", "Thorembais-Saint-Trond", "Autre-Eglise", "Bomal", "Geest-G�rompont-Petit-Rosi�re", "G�rompont", "Grand-Rosi�re-Hottomont", "Huppaye", "Mont-Saint-Andr�", "Ramillies", "Dongelberg", "Jauchelette", "Jodoigne", "Jodoigne-Souveraine", "Lathuy", "M�lin", "Pi�train", "Saint-Jean-Geest", "Saint-Remy-Geest", "Z�trud-Lumay", "Couture-Saint-Germain", "Lasne", "Lasne-Chapelle-Saint-Lambert", "Maransart", "Ohain", "Plancenoit", "Archennes", "Graven Grez-Doiceau", "Biez", "Bossut-Gottechain", "Nethen", "Monstreux", "Nivelles", "Baulers", "Thines", "Bornival", "Waterloo", "Promo-Control", "Eigenbrakel", "Ophain-Bois-Seigneur-Isaac", "Lillois-Witterz�e", "Bierk Bierghes", "Roosbeek", "Quenast", "Rebecq", "Corbais", "H�villers", "Mont-Saint-Guibert", "Kasteelbrakel", "Woutersbrakel", "Chastre", "Chastre-Villeroux-Blanmont", "Cortil-Noirmont", "Gentinnes", "Saint-G�ry", "Nil-Saint-Vincent-Saint-Martin", "Tourinnes-Saint-Lambert", "Walhain", "Walhain-Saint-Paul", "Itter", "Virginal-Samme", "Haut-Ittre", "Genappe", "Baisy-Thy", "Bousval", "Loupoigne", "Vieux-Genappe", "Glabais", "Ways", "Houtain-le-Val", "Klabbeek", "Oostkerk", "Sint-Renelde Saintes", "Tubeke Tubize", "Court-Saint-Etienne", "Marbais", "Mellery", "Sart-Dames-Avelines", "Tilly", "Villers-la-Ville")), array("regionName" => "Vlaams-Brabant", "regionShort" => "VB", "regionSlug" => "vlaams_brabant", "weight" => "1", "cities" => array("Halle", "Buizingen", "Lembeek", "Herfelingen", "Herne", "Sint-Pieters-Kapelle", "Bever Bievene", "Hoeilaart", "Galmaarden", "Tollembeek", "Vollezele", "Oudenaken", "Sint-Laureins-Berchem", "Sint-Pieters-Leeuw", "Ruisbroek", "Vlezenbeek", "Drogenbos", "Linkebeek", "Sint-Genesius-Rode", "Beersel", "Lot", "Alsemberg", "Dworp", "Huizingen", "Bogaarden", "Heikruis", "Pepingen", "Elingen", "Beert", "Bellingen", "Dilbeek", "Sint-Martens-Bodegem", "Sint-Ulriks-Kapelle", "Itterbeek", "Groot-Bijgaarden", "Schepdaal", "Asse", "Bekkerzeel", "Kobbegem", "Mollem", "Relegem", "Zellik", "Ternat", "Wambeek", "Sint-Katherina-Lombeek", "Mazenzele", "Opwijk", "Gaasbeek", "Lennik", "Sint-Kwintens-Lennik", "Sint-Martens-Lennik", "Gooik", "Kester", "Leerbeek", "Oetingen", "Onze-Lieve-Vrouw-Lombeek", "Pamel", "Roosdaal", "Strijtem", "Borchtlombeek", "Liedekerke", "Wemmel", "Brussegem", "Hamme", "Merchtem", "Affligem", "Essene", "Hekelgem", "Teralfene", "Peutie", "Vilvoorde", "Cargovil", "VTM", "Melsbroek", "Perk", "Steenokkerzeel", "Machelen", "Diegem", "Londerzeel", "Malderen", "Steenhuffel", "Grimbergen", "Humbeek", "Beigem", "Strombeek-Bever", "Meise", "Wolvertem", "Kapelle-op-den-Bos", "Nieuwenrode", "Ramsdonk", "Berg", "Buken", "Kampenhout", "Nederokkerzeel", "Nossegem", "Zaventem", "Brucargo", "Sint-Stevens-Woluwe", "Sterrebeek", "Brussel X-Luchthaven Remailing")), array("regionName" => "Luik", "regionShort" => "LU", "regionSlug" => "luik", "weight" => "1", "cities" => array("Glain", "Luik", "Rocourt", "Bressoux", "Jupille-sur-Meuse", "Li�ge", "Wandre", "Grivegn�e", "Li�ge", "Angleur", "Herstal", "Milmort", "Vottem", "Liers", "Chaudfontaine", "Vaux-sous-Ch�vremont", "Beaufays", "Embourg", "B.S.D.", "Boncelles", "Seraing", "Jemeppe-sur-Meuse", "Ougr�e", "Ehein", "Neupr�", "Rotheux-Rimi�re", "Neuville-en-Condroz", "Plainevaux", "Esneux", "Tilff", "Dolembreux", "Gomz�-Andoumont", "Rouvreux", "Sprimont", "Louveign�", "Anthisnes", "Villers-aux-Tours", "Hody", "Tavier", "Comblain-au-Pont", "Poulseur", "Comblain-Fairon", "Comblain-la-Tour", "Hamoir", "Filot", "Ferri�res", "My", "Vieuxville", "Werbomont", "Xhoris", "Burdinne", "Hann�che", "Lamontz�e", "Marneffe", "Oteppe", "H�ron", "Lavoir", "Waret-l'Ev�que", "Couthuin", "Acosse", "Ambresin", "Meeffe", "Wasseiges", "Bo�lhe", "Geer", "Hollogne-sur-Geer", "Lens-Saint-Servais", "Omal", "Darion", "Ligney", "Berloz", "Corswarem", "Rosoux-Crenwick", "Avennes", "Braives", "Ciplet", "Fallais", "Fumal", "Ville-en-Hesbaye", "Latinne", "Tourinne", "Abolens", "Avernas-le-Bauduin", "Avin", "Bertr�e", "Blehen", "Cras-Avernas", "Crehen", "Grand-Hallet", "Hannut", "Lens-Saint-Remy", "Merdorp", "Moxhe", "Petit-Hallet", "Poucet", "Thisnes", "Trogn�e", "Villers-le-Peuplier", "Wansin")), array("regionName" => "Namen", "regionShort" => "NA", "regionSlug" => "namen", "weight" => "1", "cities" => array("Beez", "Namen", "Belgrade", "Saint-Servais", "Saint-Marc", "Bouge", "Champion", "Daussoulx", "Flawinne", "Malonne", "Suarlee", "Temploux", "Vedrin", "Boninne", "Cognelee", "Gelbressee", "Marche-les-Dames", "Beuzet", "Ernage", "Gembloux", "Grand-Manil", "Lonzee", "Sauveni�re", "Grand-Leez", "Bossi�re", "Bothey", "Corroy-le-Ch�teau", "Isnes", "Mazy", "Arsimont", "Auvelais", "Falisolle", "Keumiee", "Moignelee", "Sambreville", "Tamines", "Velaine-sur-Sambre", "Aisemont", "Fosses-la-Ville", "Sart-Eustache", "Vitrival", "Emines", "Rhisnes", "Villers-lez-Heest", "Warisoulx", "Bovesse", "Meux", "Saint-Denis-Bovesse", "Dave", "Jambes", "Naninne", "Wepion", "Wierde", "Erpe", "Lives-sur-Meuse", "Loy", "Boignee", "Ligny", "Sombreffe", "Tongrinne", "Floreffe", "Floriffoux", "Soye", "Arbre", "Bois-de-Villers", "Lesve", "Lustin", "Profondeville", "Rivi�re", "Bal�tre", "Ham-sur-Sambre", "Jemeppe-sur-Sambre", "Mornimont", "Moustier-sur-Sambre", "Onoz", "Saint-Martin", "Spy", "Andenne", "Bonneville", "Coutisse", "Landenne", "Maizeret", "Sclayn", "Seilles", "Thon", "Vezin", "Bolinne", "Boneffe", "Branchon", "Dhuy", "Eghezee", "Hanret", "Leuze", "Liernu")), array("regionName" => "Henegouwen", "regionShort" => "HE", "regionSlug" => "henegouwen", "weight" => "1", "cities" => array("Charleroi", "Marcinelle", "Couillet", "Dampremy", "Goutroux", "Marchienne-au-Pont", "Monceau-sur-Sambre", "Mont-sur-Marchienne", "Jumet", "Gosselies", "Lodelinsart", "Ransart", "Roux", "Gilly", "Montignies-sur-Sambre", "Montigny-le-Tilleul", "Landelies", "Cour-sur-Heure", "Ham-sur-Heure", "Ham-sur-Heure-Nalinnes", "Jamioulx", "Marbaix", "Nalinnes", "Fontaine-l'Ev�que", "Forchies-la-Marche", "Leernes", "Anderlues", "Courcelles", "Gouy-lez-Pi�ton", "Souvret", "Trazegnies", "Bouffioulx", "Ch�telet", "Ch�telineau", "Frasnes-lez-Gosselies", "Les Bons Villers", "R�ves", "Villers-Perwin", "Wayaux", "Mellet", "Fleurus", "Heppignies", "Lambusart", "Brye", "Wagnel�e", "Wanferc�e-Baulet", "Buzet", "Obaix", "Pont-�-Celles", "Thim�on", "Viesville", "Liberchies", "Luttre", "Farciennes", "Pironchamps", "Aiseau", "Aiseau-Presles", "Pont-de-Loup", "Presles", "Roselies", "Acoz", "Gerpinnes", "Gougnies", "Joncret", "Loverval", "Villers-Poterie", "Boussu-lez-Walcourt", "Fourbechies", "Froidchapelle", "Vergnies", "Erpion", "Baili�vre", "Chimay", "Robechies", "Saint-Remy", "Salles", "Villers-la-Tour", "Virelles", "Vaulx-lez-Chimay", "Lompret", "Baileux", "Bourlers", "Forges", "l'Escaill�re", "Ri�zes", "Grandrieu", "Montbliart", "Rance", "Sautin", "Sivry", "Sivry-Rance", "Beaumont", "Leugnies", "Leval-Chaudeville", "Renlies", "Solre-Saint-G�ry", "Thirimont", "Str�e", "Leers-et-Fosteau", "Thuin", "Biesme-sous-Thuin", "Ragnies", "Bierc�e", "Goz�e", "Donstiennes", "Thuillies", "Lobbes", "Mont-Sainte-Genevi�ve", "Sars-la-Buissi�re", "Bienne-lez-Happart", "Bersillies-l'Abbaye", "Erquelinnes", "Grand-Reng", "Hantes-Wih�ries", "Montignies-Saint-Christophe", "Solre-sur-Sambre", "Fontaine-Valmont", "Labuissi�re", "Merbes-le-Ch�teau", "Merbes-Sainte-Marie", "Momignies", "Macon", "Monceau-Imbrechies", "Macquenoise", "Beauwelz", "Forge-Philippe", "Seloignes", "Bergen Mons", "Ghlin", "Fl�nu", "Jemappes", "Maisi�res", "Nimy", "Havr�")), array("regionName" => "Luxemburg", "regionShort" => "LX", "regionSlug" => "luxemburg", "weight" => "1", "cities" => array("Bastogne", "Longvilly", "Noville", "Villers-la-Bonne-Eau", "Wardin", "Martelange", "Fauvillers", "Hollange", "Tintange", "Hompr�", "Morhet", "Nives", "Sibret", "Vaux-lez-Rosieres", "Vaux-sur-Sure", "Juseret", "Houffalize", "Nadrin", "Mont", "Tailles", "Tavigny", "Mabompr�", "Wibrin", "Gouvy", "Limerl�", "Bovigny", "Beho", "Cherain", "Montleban", "Amberloup", "Sainte-Ode", "Tillet", "Lavacherie", "Flamierge", "Bertogne", "Longchamps", "Bihain", "Vielsalm", "Petit-Thier", "Grand-Halleux", "Arlon", "Bonnert", "Heinsch", "Toernich", "Guirsch", "Autelbas", "Attert", "Nobressart", "Nothomb", "Thiaumont", "Tontelange", "Habay", "Habay-la-Neuve", "Hachy", "Anlier", "Habay-la-Vieille", "Houdemont", "Rulles", "Bellefontaine", "Rossignol", "Saint-Vincent", "Tintigny", "Etalle", "Sainte-Marie-sur-Semois", "Villers-sur-Semois", "Vance", "Chantemelle", "Buzenol", "Ch�tillon", "Meix-le-Tige", "Saint-L�ger", "Musson", "Mussy-la-Ville", "Signeulx", "Bleid", "Ethe", "Ruette", "Virton", "Latour", "Saint-Mard", "Dampicourt", "Harnoncourt", "Lamorteau", "Rouvroy", "Torgny", "G�rouville", "Meix-Devant-Virton", "Robelmont", "Sommethonne", "Villers-la-Loue", "Hondelange", "Messancy", "Wolkrange", "S�lange", "Habergy", "Aubange", "Athus", "Halanzy", "Rachecourt", "Bras", "Freux", "Libramont-Chevigny", "Moircy", "Recogne", "Remagne", "Sainte-Marie-Chevigny", "Saint-Pierre", "Chiny", "Izel", "Jamoigne", "Les Bulles", "Suxy", "Termes", "Florenville", "Fontenoille", "Muno")), array("regionName" => "West-Vlaanderen", "regionShort" => "WV", "regionSlug" => "west_vlaanderen", "weight" => "1", "cities" => array("Brugge Bruges", "Koolkerke", "Hertsberge", "Oostkamp", "Ruddervoorde", "Waardamme", "Sint-Andries", "Sint-Michiels", "Loppem", "Veldegem", "Zedelgem", "Aartrijke", "Knokke", "Knokke-Heist", "Westkapelle", "Heist-aan-Zee", "Ramskapelle", "Assebroek", "Sint-Kruis", "Damme", "Hoeke", "Lapscheure", "Moerkerke", "Oostkerke", "Sijsele", "Blankenberge", "Uitkerke", "Houtave", "Meetkerke", "Nieuwmunster", "Zuienkerke", "Dudzele", "Lissewege", "Zeebrugge", "Oostende", "Stene", "Zandvoorde", "De Haan", "Klemskerke", "Wenduine", "Vlissegem", "Middelkerke", "Wilskerke", "Leffinge", "Mannekensvere", "Schore", "Sint-Pieters-Kapelle", "Slijpe", "Spermalie", "Lombardsijde", "Westende", "Bredene", "Ettelgem", "Oudenburg", "Roksem", "Westkerke", "Gistel", "Moere", "Snaaskerke", "Zevekote", "Bekegem", "Eernegem", "Ichtegem", "Jabbeke", "Snellegem", "Stalhille", "Varsenare", "Zerkegem", "Kortrijk", "Bissegem", "Heule", "Bellegem", "Kooigem", "Marke", "Rollegem", "Aalbeke", "Kuurne", "Harelbeke", "Bavikhove", "Hulste", "Deerlijk", "Zwevegem", "Heestert", "Moen", "Otegem", "Sint-Denijs", "Gullegem", "Moorsele", "Wevelgem", "Anzegem", "Gijzelbrechtegem", "Ingooigem", "Vichte", "Kaster", "Tiegem", "Avelgem", "Kerkhove", "Waarmaarde", "Outrijve", "Bossuit", "Helkijn", "Spiere", "Spiere-Helkijn", "Beerst", "Diksmuide", "Driekapellen", "Esen", "Kaaskerke", "Keiem", "Lampernisse", "Leke", "Nieuwkapelle", "Oostkerke", "Oudekapelle")), array("regionName" => "Oost-Vlaanderen", "regionShort" => "OV", "regionSlug" => "oost_vlaanderen", "weight" => "1", "cities" => array("Gent", "Mariakerke", "Drongen", "Wondelgem", "Sint-Amandsberg", "Oostakker", "Desteldonk", "Mendonk", "Sint-Kruis-Winkel", "Gentbrugge", "Ledeberg", "Afsnee", "Sint-Denijs-Westrem", "Zwijnaarde", "Zelzate", "Destelbergen", "Heusden", "Beervelde", "Lochristi", "Zaffelare", "Zeveneken", "Gontrode", "Melle", "Nieuwkerken-Waas", "Sint-Niklaas", "Belsele", "Sinaai-Waas", "Beveren", "Haasdonk", "Kallo", "Melsele", "Vrasene", "Doel", "Kallo", "Kieldrecht", "Verrebroek", "Elversele", "Steendorp", "Temse", "Tielrode", "Bazel", "Kruibeke", "Rupelmonde", "Daknam", "Eksaarde", "Lokeren", "De Klinge", "Meerdonk", "Sint-Gillis-Waas", "Sint-Pauwels", "Moerbeke", "Wachtebeke", "Kemzeke", "Stekene", "Appels", "Baasrode", "Dendermonde", "Grembergen", "Mespelare", "Oudegem", "Schoonaarde", "Sint-Gillis-bij-Dendermonde", "Hamme", "Moerzeke", "Massemen", "Westrem", "Wetteren", "Zele", "Waasmunster", "Buggenhout", "Opdorp", "Schellebelle", "Serskamp", "Wichelen", "Kalken", "Laarne", "Denderbelle", "Lebbeke", "Wieze", "Berlare", "Overmere", "Uitbergen", "Aalst", "Gijzegem", "Hofstade", "Baardegem", "Herdersem", "Meldert", "Moorsel", "Erembodegem", "Nieuwerkerken", "Impe", "Lede", "Oordegem", "Smetlede", "Wanzele", "Appelterre-Eichem", "Denderwindeke", "Lieferinge", "Nederhasselt")));
     return CountryPluginHelper::populateDB($this->countryName, $this->countrySlug, $data);
 }
 public function install()
 {
     $data = array(array("regionName" => 'Aberdeenshire', "regionShort" => 'AB', "regionSlug" => 'aberdeenshire', "weight" => 1, "cities" => array("Aberdeen", "Peterhead", "Fraserburgh", "Inverurie", "Huntley", "Ellon", "Turriff")), array("regionName" => 'Anglesey', "regionShort" => 'AG', "regionSlug" => 'anglesey', "weight" => 1, "cities" => array("Beaumaris", "Holyhead", "Llangefni", "Amlwch", "Menai Bridge")), array("regionName" => 'Angus', "regionShort" => 'AN', "regionSlug" => 'angus', "weight" => 1, "cities" => array("Forfar", "Dundee", "Arbroath", "Brechin", "Montrose", "Carnoustie", "Kirriemuir")), array("regionName" => 'Argyllshire', "regionShort" => 'AR', "regionSlug" => 'argyllshire', "weight" => 1, "cities" => array("Inveraray", "Oban", "Dunoon", "Campbeltown", "Lochgilphead", "Tobermory")), array("regionName" => 'Ayrshire', "regionShort" => 'AY', "regionSlug" => 'ayrshire', "weight" => 1, "cities" => array("Ayr", "Kilmarnock", "Irvine", "Saltcoats", "Kilwinning", "Largs", "Troon", "Cumnock")), array("regionName" => 'Banffshire', "regionShort" => 'BA', "regionSlug" => 'banffshire', "weight" => 1, "cities" => array("Banff", "Buckie", "Keith", "Macduff", "Portsoy", "Dufftown")), array("regionName" => 'Bedfordshire', "regionShort" => 'BD', "regionSlug" => 'bedfordshire', "weight" => 1, "cities" => array("Bedford", "Luton", "Dunstable", "Leighton Buzzard", "Biggleswade", "Sandy")), array("regionName" => 'Berwickshire', "regionShort" => 'BE', "regionSlug" => 'berwickshire', "weight" => 1, "cities" => array("Greenlaw", "Duns", "Eyemouth", "Lauder", "Coldstream")), array("regionName" => 'Buckinghamshire', "regionShort" => 'BK', "regionSlug" => 'buckinghamshire', "weight" => 1, "cities" => array("Aylesbury", "Milton Keynes", "Slough", "Buckingham", "High Wycombe")), array("regionName" => 'Berkshire', "regionShort" => 'BR', "regionSlug" => 'berkshire', "weight" => 1, "cities" => array("Reading", "Bracknell", "Maidenhead", "Newbury", "Windsor", "Wokingham", "Abingdon")), array("regionName" => 'Caithness', "regionShort" => 'CA', "regionSlug" => 'caithness', "weight" => 1, "cities" => array("Wick", "Thurso", "Halkirk", "Castletown")), array("regionName" => 'Cambridgeshire', "regionShort" => 'CA', "regionSlug" => 'cambridgeshire', "weight" => 1, "cities" => array("Cambridge", "Wisbech", "Ely", "March", "Whittlesey", "Chatteris", "Linton")), array("regionName" => 'Cardiganshire', "regionShort" => 'CG', "regionSlug" => 'cardiganshire', "weight" => 1, "cities" => array("Cardigan", "Aberystwyth", "Lampeter", "New Quay", "Tregaron")), array("regionName" => 'Cheshire', "regionShort" => 'CH', "regionSlug" => 'cheshire', "weight" => 1, "cities" => array("Chester", "Stockport", "Ellesmere Port", "Birkenhead", "Wallasey", "Runcorn", "Macclesfield", "Crewe")), array("regionName" => 'Clackmannanshire', "regionShort" => 'CL', "regionSlug" => 'clackmannanshire', "weight" => 1, "cities" => array("Clackmannan", "Alloa", "Tillicoultry", "Tullibody")), array("regionName" => 'Carmarthenshire', "regionShort" => 'CM', "regionSlug" => 'carmarthenshire', "weight" => 1, "cities" => array("Carmarthen", "Llanelli", "Ammanford", "Llandovery", "Kidwelly", "St. Clears")), array("regionName" => 'Cornwall', "regionShort" => 'CO', "regionSlug" => 'cornwall', "weight" => 1, "cities" => array("Bodmin", "Truro", "Camborne", "Redruth", "St. Austell", "Falmouth", "Penzance", "Newquay")), array("regionName" => 'Cumberland', "regionShort" => 'CU', "regionSlug" => 'cumberland', "weight" => 1, "cities" => array("Carlisle", "Whitehaven", "Workington", "Penrith", "Keswick", "Brampton")), array("regionName" => 'Derbyshire', "regionShort" => 'DB', "regionSlug" => 'derbyshire', "weight" => 1, "cities" => array("Derby", "Chesterfield", "Glossop", "Ilkeston", "Long Eaton", "Swadlincote", "Buxton", "Matlock", "Ashbourne")), array("regionName" => 'Denbighshire', "regionShort" => 'DE', "regionSlug" => 'denbighshire', "weight" => 1, "cities" => array("Denbigh", "Wrexham", "Ruthin", "Abergele", "Llangollen")), array("regionName" => 'Devon', "regionShort" => 'DE', "regionSlug" => 'devon', "weight" => 1, "cities" => array("Exeter", "Plymouth", "Torquay", "Paignton", "Barnstaple", "Tiverton", "Newton Abbot", "Tavistock")), array("regionName" => 'Dunbartonshire', "regionShort" => 'DN', "regionSlug" => 'dunbartonshire', "weight" => 1, "cities" => array("Dumbarton", "Clydebank", "Cumbernauld", "Helensburgh", "Alexandria", "Kirkintilloch")), array("regionName" => 'Dorset', "regionShort" => 'DO', "regionSlug" => 'dorset', "weight" => 1, "cities" => array("Dorchester", "Poole", "Weymouth", "Sherborne", "Wimborne Minster", "Shaftesbury")), array("regionName" => 'East Lothian', "regionShort" => 'EL', "regionSlug" => 'east_lothian', "weight" => 1, "cities" => array("Haddington", "North Berwick", "Dunbar", "Tranent", "East Linton")), array("regionName" => 'Essex', "regionShort" => 'ES', "regionSlug" => 'essex', "weight" => 1, "cities" => array("Chelmsford", "Basildon", "Romford", "Southend", "Colchester", "Harlow", "Brentwood", "West Ham")), array("regionName" => 'Fife', "regionShort" => 'FI', "regionSlug" => 'fife', "weight" => 1, "cities" => array("Cupar", "Dunfermline", "Glenrothes", "Kirkcaldy", "St. Andrews", "Cowdenbeath", "Burntisland")), array("regionName" => 'Flintshire', "regionShort" => 'FL', "regionSlug" => 'flintshire', "weight" => 1, "cities" => array("Mold", "Flint", "Rhyl", "Prestatyn", "Connah's Quay", "Holywell", "Buckley", "St. Asaph")), array("regionName" => 'Glamorgan', "regionShort" => 'GL', "regionSlug" => 'glamorgan', "weight" => 1, "cities" => array("Cardiff", "Swansea", "Merthyr Tydfil", "Barry", "Caerphilly", "Bridgend", "Neath", "Pontypridd")), array("regionName" => 'Gloucestershire', "regionShort" => 'GL', "regionSlug" => 'gloucestershire', "weight" => 1, "cities" => array("Gloucester", "Bristol", "Cheltenham", "Stroud", "Cirencester", "Tewkesbury")), array("regionName" => 'Hampshire', "regionShort" => 'HA', "regionSlug" => 'hampshire', "weight" => 1, "cities" => array("Winchester", "Southampton", "Portsmouth", "Bournemouth", "Basingstoke", "Newport")), array("regionName" => 'Herefordshire', "regionShort" => 'HE', "regionSlug" => 'herefordshire', "weight" => 1, "cities" => array("Hereford", "Ross-on-Wye", "Leominster", "Ledbury", "Bromyard", "Kington")), array("regionName" => 'Hertfordshire', "regionShort" => 'HR', "regionSlug" => 'hertfordshire', "weight" => 1, "cities" => array("Hertford", "Watford", "St. Albans", "Hemel Hempstead", "Stevenage", "Hatfield")), array("regionName" => 'Huntingdonshire', "regionShort" => 'HU', "regionSlug" => 'huntingdonshire', "weight" => 1, "cities" => array("Huntingdon", "St. Ives", "St. Neots", "Ramsey", "Yaxley")), array("regionName" => 'Inverness-shire', "regionShort" => 'IN', "regionSlug" => 'inverness_shire', "weight" => 1, "cities" => array("Inverness", "Fort William", "Kingussie", "Newtonmore", "Portree")), array("regionName" => 'Kincardineshire', "regionShort" => 'KC', "regionSlug" => 'kincardineshire', "weight" => 1, "cities" => array("Stonehaven", "Banchory", "Laurencekirk", "Inverbervie")), array("regionName" => 'Kent', "regionShort" => 'KE', "regionSlug" => 'kent', "weight" => 1, "cities" => array("Maidstone", "Canterbury", "Bromley", "Rochester", "Margate", "Folkestone", "Dover", "Greenwich")), array("regionName" => 'Kirkcudbrightshire', "regionShort" => 'KK', "regionSlug" => 'kirkcudbrightshire', "weight" => 1, "cities" => array("Kircudbright", "Castle Douglas", "Dalbeattie", "New Galloway")), array("regionName" => 'Kinross-shire', "regionShort" => 'KR', "regionSlug" => 'kinross_shire', "weight" => 1, "cities" => array("Kinross", "Milnathort")), array("regionName" => 'Lancashire', "regionShort" => 'LA', "regionSlug" => 'lancashire', "weight" => 1, "cities" => array("Lancaster", "Liverpool", "Manchester", "Preston", "Bolton", "Warrington", "Barrow-in-Furness")), array("regionName" => 'Leicestershire', "regionShort" => 'LE', "regionSlug" => 'leicestershire', "weight" => 1, "cities" => array("Leicester", "Loughborough", "Hinckley", "Melton Mowbray", "Coalville", "Lutterworth")), array("regionName" => 'Lincolnshire', "regionShort" => 'LI', "regionSlug" => 'lincolnshire', "weight" => 1, "cities" => array("Lincoln", "Grimsby", "Scunthorpe", "Boston", "Grantham", "Stamford", "Skegness", "Louth")), array("regionName" => 'Lanarkshire', "regionShort" => 'LK', "regionSlug" => 'lanarkshire', "weight" => 1, "cities" => array("Lanark", "Glasgow", "East Kilbride", "Hamilton", "Motherwell", "Coatbridge", "Carluke")), array("regionName" => 'Merionethshire', "regionShort" => 'ME', "regionSlug" => 'merionethshire', "weight" => 1, "cities" => array("Dolgellau", "Bala", "Tywyn", "Blaenau Ffestiniog", "Barmouth", "Harlech")), array("regionName" => 'Montgomeryshire', "regionShort" => 'MG', "regionSlug" => 'montgomeryshire', "weight" => 1, "cities" => array("Montgomery", "Newtown", "Welshpool", "Machynlleth", "Llanidloes")), array("regionName" => 'Midlothian', "regionShort" => 'ML', "regionSlug" => 'midlothian', "weight" => 1, "cities" => array("Edinburgh", "Musselburgh", "Penicuik", "Dalkeith", "Bonnyrigg")), array("regionName" => 'Monmouthshire', "regionShort" => 'MO', "regionSlug" => 'monmouthshire', "weight" => 1, "cities" => array("Monmouth", "Newport", "Blackwood", "Cwmbran", "Abergavenny", "Chepstow", "Tredegar")), array("regionName" => 'Morayshire', "regionShort" => 'MO', "regionSlug" => 'morayshire', "weight" => 1, "cities" => array("Elgin", "Forres", "Rothes", "Lossiemouth", "Fochabers")), array("regionName" => 'Northumberland', "regionShort" => 'NB', "regionSlug" => 'northumberland', "weight" => 1, "cities" => array("Alnwick", "Newcastle-upon-Tyne", "Morpeth", "Hexham", "Berwick-upon-Tweed")), array("regionName" => 'Norfolk', "regionShort" => 'NF', "regionSlug" => 'norfolk', "weight" => 1, "cities" => array("Norwich", "Great Yarmouth", "King's Lynn", "Dereham", "Cromer", "Hunstanton")), array("regionName" => 'Northamptonshire', "regionShort" => 'NT', "regionSlug" => 'northamptonshire', "weight" => 1, "cities" => array("Northampton", "Peterborough", "Corby", "Kettering", "Wellingborough")), array("regionName" => 'Nottinghamshire', "regionShort" => 'NT', "regionSlug" => 'nottinghamshire', "weight" => 1, "cities" => array("Nottingham", "Mansfield", "Worksop", "Newark", "Retford", "Southwell")), array("regionName" => 'Orkney', "regionShort" => 'OK', "regionSlug" => 'orkney', "weight" => 1, "cities" => array("Kirkwall", "Sromness", "Balfour")), array("regionName" => 'Oxfordshire', "regionShort" => 'OX', "regionSlug" => 'oxfordshire', "weight" => 1, "cities" => array("Oxford", "Banbury", "Witney", "Bicester", "Henley-on-Thames", "Carterton", "Thame", "Bloxham")), array("regionName" => 'Pembrokeshire', "regionShort" => 'PE', "regionSlug" => 'pembrokeshire', "weight" => 1, "cities" => array("Pembroke", "Milford Haven", "Haverfordwest", "Fishguard", "Tenby", "St. David's")), array("regionName" => 'Radnorshire', "regionShort" => 'RA', "regionSlug" => 'radnorshire', "weight" => 1, "cities" => array("Presteigne", "Llandrindod Wells", "Knighton", "Rhayader", "New Radnor")), array("regionName" => 'Renfrewshire', "regionShort" => 'RF', "regionSlug" => 'renfrewshire', "weight" => 1, "cities" => array("Renfrew", "Paisley", "Greenock", "Johnstone", "Port Glasgow", "Barrhead", "Kilmalcolm")), array("regionName" => 'Roxburghshire', "regionShort" => 'RO', "regionSlug" => 'roxburghshire', "weight" => 1, "cities" => array("Jedburgh", "Hawick", "Kelso", "Melrose", "Roxburgh")), array("regionName" => 'Rutland', "regionShort" => 'RU', "regionSlug" => 'rutland', "weight" => 1, "cities" => array("Oakham", "Uppingham. Cottesmore")), array("regionName" => 'Shropshire', "regionShort" => 'SA', "regionSlug" => 'shropshire', "weight" => 1, "cities" => array("Shrewsbury", "Telford", "Oswestry", "Bridgnorth", "Whitchurch", "Market Drayton", "Ludlow")), array("regionName" => 'Selkirkshire', "regionShort" => 'SE', "regionSlug" => 'selkirkshire', "weight" => 1, "cities" => array("Selkirk", "Clovenfords", "Galashiels")), array("regionName" => 'Suffolk', "regionShort" => 'SF', "regionSlug" => 'suffolk', "weight" => 1, "cities" => array("Ipswich", "Bury St. Edmunds", "Lowestoft", "Felixstowe", "Sudbury", "Haverhill", "Bungay")), array("regionName" => 'Shetland', "regionShort" => 'SH', "regionSlug" => 'shetland', "weight" => 1, "cities" => array("Lerwick", "Scalloway", "Baltasound")), array("regionName" => 'Somerset', "regionShort" => 'SO', "regionSlug" => 'somerset', "weight" => 1, "cities" => array("Taunton", "Bath", "Weston-super-Mare", "Yeovil", "Bridgwater", "Wells", "Glastonbury")), array("regionName" => 'Surrey', "regionShort" => 'SR', "regionSlug" => 'surrey', "weight" => 1, "cities" => array("Guildford", "Croydon", "Woking", "Sutton", "Kingston-on-Thames", "Wandsworth", "Wimbledon", "Brixton")), array("regionName" => 'Sussex', "regionShort" => 'SS', "regionSlug" => 'sussex', "weight" => 1, "cities" => array("Chichester", "Brighton", "Worthing", "Crawley", "Hastings", "Eastbourne", "Bognor Regis", "Horsham")), array("regionName" => 'Stirlingshire', "regionShort" => 'ST', "regionSlug" => 'stirlingshire', "weight" => 1, "cities" => array("Stirling", "Falkirk", "Grangemouth", "Kilsyth", "Bridge of Allan", "Denny", "Alva")), array("regionName" => 'Staffordshire', "regionShort" => 'ST', "regionSlug" => 'staffordshire', "weight" => 1, "cities" => array("Stafford", "Stoke-on-Trent", "Wolverhampton", "Walsall", "Cannock", "Lichfield")), array("regionName" => 'Sutherland', "regionShort" => 'SU', "regionSlug" => 'sutherland', "weight" => 1, "cities" => array("Dornoch", "Helmsdale", "Brora", "Golspie", "Lairg", "Durness", "Tongue")), array("regionName" => 'Warwickshire', "regionShort" => 'WA', "regionSlug" => 'warwickshire', "weight" => 1, "cities" => array("Warwick", "Birmingham", "Coventry", "Nuneaton", "Rugby", "Solihull", "Stratford-upon-Avon")), array("regionName" => 'Westmorland', "regionShort" => 'WE', "regionSlug" => 'westmorland', "weight" => 1, "cities" => array("Appleby", "Kendal", "Windermere", "Ambleside", "Kirkby Lonsdale")), array("regionName" => 'Wigtownshire', "regionShort" => 'WI', "regionSlug" => 'wigtownshire', "weight" => 1, "cities" => array("Wigtown", "Stranraer", "Newton Stewart", "Whithorn")), array("regionName" => 'Wiltshire', "regionShort" => 'WI', "regionSlug" => 'wiltshire', "weight" => 1, "cities" => array("Trowbridge", "Salisbury", "Swindon", "Chippenham", "Devizes", "Marlborough", "Warminster")), array("regionName" => 'West Lothian', "regionShort" => 'WL', "regionSlug" => 'west_lothian', "weight" => 1, "cities" => array("Linlithgow", "Livingston", "Bo'ness", "Broxburn", "Whitburn", "Armadale", "Bathgate")), array("regionName" => 'Worcestershire', "regionShort" => 'WO', "regionSlug" => 'worcestershire', "weight" => 1, "cities" => array("Worcester", "Dudley", "Kidderminster", "Stourbridge", "Halesowen", "Malvern", "Evesham")), array("regionName" => 'Yorkshire', "regionShort" => 'YK', "regionSlug" => 'yorkshire', "weight" => 1, "cities" => array("Northallerton", "Middlesbrough", "Scarborough", "Whitby", "Beverley", "Hull", "Bridlington", "Driffield", "Hornsea", "Filey", "Wakefield", "Leeds", "Sheffield", "Bradford", "Halifax", "Harrogate", "York")), array("regionName" => 'Durham', "regionShort" => 'DU', "regionSlug" => 'durham', "weight" => 1, "cities" => array("Durham", "Sunderland", "Stockton-on-Tees", "Darlington", "Hartlepool", "Gateshead", "Washington")), array("regionName" => 'Brecknockshire', "regionShort" => 'BR', "regionSlug" => 'brecknockshire', "weight" => 1, "cities" => array("Brecon", "Builth Wells", "Hay-on-Wye", "Talgarth", "Llanwrtwd Wells")), array("regionName" => 'Buteshire', "regionShort" => 'BU', "regionSlug" => 'buteshire', "weight" => 1, "cities" => array("Rothesay", "Millport", "Brodick", "Lochranza")), array("regionName" => 'Dumfriesshire', "regionShort" => 'DF', "regionSlug" => 'dumfriesshire', "weight" => 1, "cities" => array("Dumfries", "Annan", "Lockerbie", "Moffat", "Sanquhar", "Langholm", "Gretna")), array("regionName" => 'Nairnshire', "regionShort" => 'NA', "regionSlug" => 'nairnshire', "weight" => 1, "cities" => array("Nairn", "Auldearn", "Cawdor", "Ferness")), array("regionName" => 'Perthshire', "regionShort" => 'PE', "regionSlug" => 'perthshire', "weight" => 1, "cities" => array("Perth", "Crieff", "Pitlochry", "Callander", "Blairgowrie", "Rattray", "Coupar Angus", "Kincardine")), array("regionName" => 'Ross-shire', "regionShort" => 'RO', "regionSlug" => 'ross_shire', "weight" => 1, "cities" => array("Dingwall", "Stornaway", "Tain", "Alness", "Invergordon")));
     return CountryPluginHelper::populateDB($this->countryName, $this->countrySlug, $data);
 }