Piwik\Plugins\UserCountry\LocationProvider\GeoIp\Php::__construct PHP Method

__construct() public method

Constructor.
public __construct ( array | boolean $customDbNames = false )
$customDbNames array | boolean The possible filenames for each type of GeoIP database. eg array( 'loc' => array('GeoLiteCity.dat'), 'isp' => array('GeoIP.dat', 'GeoIPISP.dat') 'org' => array('GeoIPOrg.dat') ) If a key is missing (or the parameter not supplied), then the default database names are used.
    public function __construct($customDbNames = false)
    {
        $this->customDbNames = parent::$dbNames;
        if ($customDbNames !== false) {
            foreach ($this->customDbNames as $key => $names) {
                if (isset($customDbNames[$key])) {
                    $this->customDbNames[$key] = $customDbNames[$key];
                }
            }
        }
    }