Constants

TYPE_COUNTRY

TYPE_COUNTRY

TYPE_CITY

TYPE_CITY

TYPE_LOCATION

TYPE_LOCATION

TYPE_ISP

TYPE_ISP

TYPE_FULL

TYPE_FULL

Properties

$db

$db : 

Type

Methods

__construct()

__construct(\PDO  $db) 

Parameters

\PDO $db

Import_From_CSV()

Import_From_CSV(  $filename,   $type,   $table_name = "dbip_lookup",   $progress_callback = null) 

Parameters

$filename
$type
$table_name
$progress_callback

Prepare_Import()

Prepare_Import(  $table_name,   $fields) 

Parameters

$table_name
$fields

Finalize_Import()

Finalize_Import() 

Import_Row()

Import_Row(  $res,   $row) 

Parameters

$res
$row

Do_Lookup()

Do_Lookup(  $table_name,   $addr_type,   $addr_start) 

Parameters

$table_name
$addr_type
$addr_start

Addr_Type()

Addr_Type(  $addr) 

Parameters

$addr