Return the world continents.

@author Erik Campobadal Fores <soc@erik.cat>
@copyright 2017 erik.cat
@return Collection
2972
public static function continents() : Collection
    {
        $file = __DIR__ . "/../Assets/topojson/world-continents.json";

        return Collection::make(
            json_decode(file_get_contents($file), true)['objects']['continent']['geometries']
        )->map(function ($continent) {
            return $continent['properties']['continent'];
        });
    }
160821
public function getCountries()
    {
        if (!isset($this->_issuerData))
            throw new Exception("Issuer must be selected first");
        $countries = array();
        foreach ($this->_issuerData["Countries"] as $country) {
            array_push($countries, $country["CountryCode"]);
        }
        return $countries;
    }
1958
public static function countriesList()
    {
        $path = dirname(realpath(__FILE__)).DIRECTORY_SEPARATOR.'data/countries.json';
        $countries = self::readJson($path, true);

        $listCountries = [];

        foreach ($countries['Names'] as $code => $value) {
            $listCountries[$code] = $value;
        }

        return $listCountries;
    }
568663
public function all()
    {
        $multi = $this->client->zoneLoadMulti();

        $zones = array_get($multi, 'response.zones.objs');

        $all = new Collection();

        foreach ($zones as $zone) {
            $name = $zone['zone_name'];
            $all->put($name, $this->get($name));
        }

        return $all;
    }
269327
public function getAll()
    {
        $result = array();

        foreach (Data::$currencies as $currency) {
            $result[] = $this->getObjectFromArray($currency);
        }

        return $result;
    }
516828
public function getCollections()
    {
        if ($this->collections) {
            return $this->collections;
        }

        $collectionMapper = ($this->container->dataMapper)('CollectionMapper');

        return $this->collections = $collectionMapper->find();
    }
514757
public function getAllSets()
    {
        if ($this->_aAllSets === null) {
            $this->_aAllSets = false;

            if ($this->getPaymentList()) {
                return $this->_aAllSets;
            }
        }

        return $this->_aAllSets;
    }
694418
public function getCountryFull()
    {
        $list = i18n::getData()->getCountries();
        $country = strtolower($this->Country);
        return (array_key_exists($country, $list)) ? $list[$country] : $country;
    }
797975
public function getCollection()
    {
        $queueDatabase = $this->database;
        $queueResource = $this->collection;
        $db = $this->getAdapter();

        return $db->$queueDatabase->$queueResource;
    }
490154
public static function all()
    {
        $countries = array_values(static::$countries);

        array_walk($countries, function (&$value) {
            $value = new Country($value);
        });

        return $countries;
    }
419059
public static function getcountries()
	{
		$countries = array();

		if (!($gdb = self::getGeoDBO()))
		{
			return $countries;
		}

		$gdb->setQuery("SELECT code, name FROM countries ORDER BY name");
		$results = $gdb->loadObjectList();

		if ($results)
		{
			foreach ($results as $row)
			{
				if ($row->code != '-' && $row->name != '-')
				{
					array_push($countries, array(
						'code' => strtolower($row->code),
						'id'   => $row->code,
						'name' => $row->name
					));
				}
			}
		}

		return $countries;
	}
1122220
public function countries(Request $request = null)
    {
        $query = Country::with('zone');

        if ($request) {
            $resource = new Collection($query, 'country', $request);
            return $this->respondWithCollection($resource);
        }
        return $query->get();
    }
1283787
public function currencies()
    {
        $currencies = $this->helper->loadJsonFiles($this->helper->dataDir('currencies/default'))->mapWithKeys(function ($country, $code) {
            return [upper($code) => $country];
        });

        $overload = $this->helper->loadJsonFiles($this->helper->dataDir('currencies/overload'))->mapWithKeys(function ($country, $code) {
            return [upper($code) => $country];
        });

        return $currencies->overwrite($overload);
    }
853718
public function getRouteCollection()
    {
        if (($this->otherSite && $this->isMultiLanguage($this->otherSite['host'])) || !$this->otherSite && $this->isMultiLanguage()) {
            if (!$this->routeCollectionMultiLanguage) {
                $this->routeCollectionMultiLanguage = new RouteCollection();

                $this->addMultiLangPreviewRoute();
                $this->addMultiLangSlugRoute();
            }

            return $this->routeCollectionMultiLanguage;
        } elseif (!$this->routeCollection) {
            $this->routeCollection = new RouteCollection();

            $this->addPreviewRoute();
            $this->addSlugRoute();
        }

        return $this->routeCollection;
    }
2485
protected function getListCountry()
    {
        $conditions = $this->query_filter;
        $conditions['limit'] = $this->data_limit;

        return (array) $this->country->getList($conditions);
    }
1370790
public static function getCountryAll()
    {
        $countries = [];
        foreach (static::$identifiers as $identifier => $country) {
            $countries[] = [
                "identifier" => $identifier,
                "name" => $country
            ];
        }
        ArrayHelper::multisort($countries, "identifier", SORT_ASC, SORT_NUMERIC);
        return $countries;
    }
1331866
private function getSystemCollections()
    {
        if (!$this->systemCollections) {
            if (!$this->cache->isFresh()) {
                $systemCollections = $this->buildSystemCollections(
                    $this->locale,
                    $this->getUserId()
                );

                $this->cache->write($systemCollections);
            }

            $this->systemCollections = $this->cache->read();
        }

        return $this->systemCollections;
    }