You are here

public function GeoIpHandlerV1::setDbFile in GeoIP API 7.2

Set the db file to use.

Parameters

string $db_file: Path to the db file.

Overrides GeoIpHandlerInterface::setDbFile

File

src/GeoIpHandlerV1.php, line 65
The GeoIP API handler for version 1 - legacy.

Class

GeoIpHandlerV1

Namespace

Drupal\geoip

Code

public function setDbFile($db_file) {
  $this->dbFile = $db_file;

  // Unset reader to ensure the new file is taken in account.
  $this->reader = NULL;
}