DorsetDigital\SmartRedirect\Helper\MaxMindHelper
Synopsis
class MaxMindHelper
{
- // members
- private static string $download_base = 'https://download.maxmind.com/app/geoip_download';
- private static string $edition_id = 'GeoLite2-Country';
- private static string $db_filename = 'GeoLite2-Country.mmdb';
- private static string $download_file_suffix = 'tar.gz';
- private static string $local_dir = 'GeoData';
- private static string $temp_dir = 'temp';
- private static string $db_file_tempname = 'countryDB';
- // methods
- private static void getLicenceKey()
- public static void downloadDatabase()
- public static void checkStructure()
- private static void getLocalDBLocation()
- private static void getLocalTempLocation()
- private static void extractDatabaseFiles()
- private static void copyDBFile()
- private static void recursiveCopy()
- public static void getLocalDBFilePath()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $db_file_tempname — string
- $db_filename — string
- $download_base — string
- $download_file_suffix — string
- $edition_id — string
- $local_dir — string
- $temp_dir — string