public static function DB::getInstance in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/lib/Cleantalk/Common/DB.php \Cleantalk\Common\DB::getInstance()
2 calls to DB::getInstance()
- AntiCrawler::__construct in src/lib/Cleantalk/Common/Firewall/Modules/AntiCrawler.php
- * FirewallModule constructor.
* Use this method to prepare any data for the module working.
*
*
- AntiFlood::__construct in src/lib/Cleantalk/Common/Firewall/Modules/AntiFlood.php
- * FirewallModule constructor.
* Use this method to prepare any data for the module working.
*
*
File
- src/lib/Cleantalk/Common/DB.php, line 36
Class
- DB
- CleanTalk abstract Data Base driver.
Shows what should be inside.
Uses singleton pattern.
Namespace
Cleantalk\Common
Code
public static function getInstance() {
if (!isset(self::$instance)) {
self::$instance = new static();
self::$instance
->init();
}
return self::$instance;
}