You are here

public function Firewall::getUpdater in Anti Spam by CleanTalk 9.1.x

Same name and namespace in other branches
  1. 8.4 src/lib/Cleantalk/Common/Firewall/Firewall.php \Cleantalk\Common\Firewall\Firewall::getUpdater()

Get and configure the FirewallUpdater object.

Parameters

string $data_table_name:

Return value

FirewallUpdater

File

src/lib/Cleantalk/Common/Firewall/Firewall.php, line 370

Class

Firewall

Namespace

Cleantalk\Common\Firewall

Code

public function getUpdater($data_table_name) {
  $fw_updater = new FirewallUpdater($this->api_key, $this->db, $data_table_name);
  $fw_updater
    ->setSpecificHelper($this->helper);
  $fw_updater
    ->setSpecificApi($this->api);
  return $fw_updater;
}