You are here

private static function API::getCurrentTimestamp in Anti Spam by CleanTalk 9.1.x

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

Get current timestamp for API calling.

@important This method can be overloaded in the CMS-based API class.

Return value

int

2 calls to API::getCurrentTimestamp()
API::method__security_logs in src/lib/Cleantalk/Common/API.php
* Wrapper for security_logs API method. * Sends security logs to the cloud. * *
API::method__security_logs__sendFWData in src/lib/Cleantalk/Common/API.php
* Wrapper for security_logs API method. * Sends Securitty Firewall logs to the cloud. * *

File

src/lib/Cleantalk/Common/API.php, line 810

Class

API
CleanTalk API class. Mostly contains wrappers for API methods. Check and send mehods. Compatible with any CMS.

Namespace

Cleantalk\Common

Code

private static function getCurrentTimestamp() {
  return time();
}