vBulletin 5.6.5 API

vB_Utility_Geoip
in package
Uses vB_Utility_Trait_NoSerialize

vB_Utility_Geoip

Table of Contents

__serialize()  : mixed
__sleep()  : mixed
__unserialize()  : mixed
__wakeup()  : mixed
getIpData()  : string
Return the raw response from the GeoIP provider.
getLocation()  : mixed
getCountryCode()  : string
Return the country code from the GeoIP provider.

Methods

__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()

Return the raw response from the GeoIP provider.

public getIpData(string $address) : string

This is public to allow for diagnostic testing. It is not intended for general use.

Parameters
$address : string

-- 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 $ipaddress) : mixed
Parameters
$ipaddress : 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

Search results