You are here

public static function Helper::SfwUpdate_DoFinisnAction in Anti Spam by CleanTalk 9.1.x

Same name in this branch
  1. 9.1.x src/lib/Cleantalk/Common/Helper.php \Cleantalk\Common\Helper::SfwUpdate_DoFinisnAction()
  2. 9.1.x src/lib/Cleantalk/ApbctDrupal/Helper.php \Cleantalk\ApbctDrupal\Helper::SfwUpdate_DoFinisnAction()
Same name and namespace in other branches
  1. 8.4 src/lib/Cleantalk/Common/Helper.php \Cleantalk\Common\Helper::SfwUpdate_DoFinisnAction()

Implement here any actions after SFW updating finished.

Return value

void

1 method overrides Helper::SfwUpdate_DoFinisnAction()
Helper::SfwUpdate_DoFinisnAction in src/lib/Cleantalk/ApbctDrupal/Helper.php
Implement here any actions after SFW updating finished.

File

src/lib/Cleantalk/Common/Helper.php, line 1389

Class

Helper
CleanTalk Helper class. Compatible with any CMS.

Namespace

Cleantalk\Common

Code

public static function SfwUpdate_DoFinisnAction() {

  // EXAMPLE
  // global $apbct;
  // $apbct->data['last_firewall_updated'] = current_time('timestamp');
  // $apbct->save('data');
  // $apbct->stats['sfw']['entries'] = $wpdb->get_var('SELECT COUNT(*) FROM ' . APBCT_TBL_FIREWALL_DATA );
  // $apbct->stats['sfw']['last_update_time'] = time();
  // $apbct->save('stats');
}