vBulletin v6.0.4

vB_Utility_Geoip
in package
Uses vB_Utility_Trait_NoSerialize

AbstractYes

vB_Utility_Geoip

Table of Contents

Methods

__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
getIpData()  : string
Return the raw response from the GeoIP provider.
getLocation()  : mixed

Methods

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(mixed $serialized) : void
Parameters
$serialized : 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

        
On this page

Search results