You are here

private function Reader::flatModelFor 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::flatModelFor()
4 calls to Reader::flatModelFor()
Reader::anonymousIp in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 Anonymous IP model.
Reader::connectionType in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 Connection Type model.
Reader::domain in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 Domain model.
Reader::isp in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 ISP model.

File

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

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

private function flatModelFor($class, $type, $ipAddress) {
  $record = $this
    ->getRecord($class, $type, $ipAddress);
  $record['ip_address'] = $ipAddress;
  $class = "GeoIp2\\Model\\" . $class;
  return new $class($record);
}