public function Firewall::__construct in Anti Spam by CleanTalk 8.4
Same name and namespace in other branches
- 9.1.x src/lib/Cleantalk/Common/Firewall/Firewall.php \Cleantalk\Common\Firewall\Firewall::__construct()
Creates Database driver instance.
Parameters
string $api_key:
DB $db:
string $log_table_name:
File
- src/
lib/ Cleantalk/ Common/ Firewall/ Firewall.php, line 103
Class
Namespace
Cleantalk\Common\FirewallCode
public function __construct($api_key, DB $db, $log_table_name) {
$this->api_key = $api_key;
$this->db = $db;
$this->log_table_name = $db->prefix . $log_table_name;
$this->debug = (bool) Get::get('debug');
$this->ip_array = $this
->ipGet('real', true);
$this->helper = new Helper();
$this->api = new API();
}