You are here

public function SFW::__construct in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 9.1.x src/lib/Cleantalk/Common/Firewall/Modules/SFW.php \Cleantalk\Common\Firewall\Modules\SFW::__construct()

FireWall_module constructor. Use this method to prepare any data for the module working.

Parameters

string $data_table:

array $params:

Overrides FirewallModule::__construct

File

src/lib/Cleantalk/Common/Firewall/Modules/SFW.php, line 26

Class

SFW

Namespace

Cleantalk\Common\Firewall\Modules

Code

public function __construct($data_table, $params = array()) {
  $this->db_data_table_name = $data_table ?: null;
  foreach ($params as $param_name => $param) {
    $this->{$param_name} = isset($this->{$param_name}) ? $param : false;
  }
}