1 | <?php |
||
15 | class Jetpack_Geolite_Integration { |
||
16 | |||
17 | /** |
||
18 | * MaxMind GeoLite2 database path. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | private $database = ''; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | * |
||
27 | * @param string $database MaxMind GeoLite2 database path. |
||
28 | */ |
||
29 | public function __construct( $database ) { |
||
36 | |||
37 | /** |
||
38 | * Get country 2-letters ISO by IP address. |
||
39 | * Retuns empty string when not able to find any ISO code. |
||
40 | * |
||
41 | * @param string $ip_address User IP address. |
||
42 | * @return string |
||
43 | */ |
||
44 | public function get_country_iso( $ip_address ) { |
||
59 | |||
60 | /** |
||
61 | * Require geolite library. |
||
62 | */ |
||
63 | private function require_geolite_library() { |
||
70 | } |
||
71 |