vB_Utility_Geoip_Ipstack
extends vB_Utility_Geoip
in package
vB_Utility_Geoip
Table of Contents
- $key : mixed
- $urlLoader : mixed
- $useSecure : mixed
- __construct() : mixed
- __serialize() : mixed
- __sleep() : mixed
- __unserialize() : mixed
- __wakeup() : mixed
- getIpData() : string
- This is public to allow for diagnostic testing. It is not intended for general use.
- getLocation() : mixed
- getCountryCode() : string
- Return the country code from the GeoIP provider.
Properties
$key
private
mixed
$key
$urlLoader
private
mixed
$urlLoader
$useSecure
private
mixed
$useSecure
= alse
Methods
__construct()
public
__construct(mixed $data) : mixed
Parameters
- $data : mixed
Return values
mixed —__serialize()
public
__serialize() : mixed
Return values
mixed —__sleep()
public
__sleep() : mixed
Return values
mixed —__unserialize()
public
__unserialize(mixed $serialized) : mixed
Parameters
- $serialized : mixed
Return values
mixed —__wakeup()
public
__wakeup() : mixed
Return values
mixed —getIpData()
This is public to allow for diagnostic testing. It is not intended for general use.
public
getIpData(mixed $address) : string
Parameters
- $address : mixed
-
-- The IP address to check
Return values
string —-- the raw text of the response (presumable JSON or some other serialization format)
getLocation()
public
getLocation(mixed $address) : mixed
Parameters
- $address : mixed
Return values
mixed —getCountryCode()
Return the country code from the GeoIP provider.
protected
getCountryCode(mixed $ipaddress) : string
Parameters
- $ipaddress : mixed
Return values
string —-- the country code returned from the IP Provider