You are here

public function CleantalkRequest::__construct in Anti Spam by CleanTalk 7

Same name and namespace in other branches
  1. 7.5 src/CleantalkRequest.php \CleantalkRequest::__construct()
  2. 7.2 cleantalk.module \CleantalkRequest::__construct()
  3. 7.4 src/CleantalkRequest.php \CleantalkRequest::__construct()

Fill params with constructor

Parameters

type $params:

File

./cleantalk.module, line 332
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;
    }
  }
}