You are here

public function Reader::isp in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 includes/vendor/geoip2/geoip2/src/Database/Reader.php \GeoIp2\Database\Reader::isp()

This method returns a GeoIP2 ISP model.

Parameters

string $ipAddress IPv4 or IPv6 address as a string.:

Return value

\GeoIp2\Model\Isp

Throws

\GeoIp2\Exception\AddressNotFoundException if the address is not in the database.

\MaxMind\Db\Reader\InvalidDatabaseException if the database is corrupt or invalid

File

includes/vendor/geoip2/geoip2/src/Database/Reader.php, line 182

Class

Reader
Instances of this class provide a reader for the GeoIP2 database format. IP addresses can be looked up using the database specific methods.

Namespace

GeoIp2\Database

Code

public function isp($ipAddress) {
  return $this
    ->flatModelFor('Isp', 'GeoIP2-ISP', $ipAddress);
}