Documentation

ClearAll

CUserCounter::ClearAll(
 user_id,
 sendPull = true
);

The method clears all user counters. Non-static method.

Parameters

Parameter Description Available from version
user_id User ID11.5.2
sendPull Optional. Specifies to immediately send data into the Push&Pull module for "real time counters" (sending is available when module is installed and "Queue server" is activated. Without queue server, the method works from the Push&Pull module version 12.5.4) If this counter must not be thrown, specify false.True by default.12.5.8

Returned value

Returns true on success and false otherwise.

Example

CUserCounter::ClearAll($user_id)


© «Bitrix24», 2001-2024
Up