public function CleantalkRequest::__construct in Anti Spam by CleanTalk 7.2
Same name and namespace in other branches
- 7.5 src/CleantalkRequest.php \CleantalkRequest::__construct()
- 7 cleantalk.module \CleantalkRequest::__construct()
- 7.4 src/CleantalkRequest.php \CleantalkRequest::__construct()
Fill params with constructor
Parameters
type $params:
File
- ./
cleantalk.module, line 509 - Main CleanTalk integration module functions.
Class
- CleantalkRequest
- Request class
Code
public function __construct($params = null) {
if (is_array($params) && count($params) > 0) {
foreach ($params as $param => $value) {
$this->{$param} = $value;
}
}
}