Documentation

GetValue

CUserCounter::GetValue(
 user_id,
 code
 site_id = SITE_ID
);

The method is used to get a specific user counter. Static method.

Parameters

Parameter Description Available from version
user_id User ID11.5.2
code Counter code11.5.2
site_id Site ID. Optional. Current site is specified by default.11.5.2

Returned value

Returns data of the specific user counter.

Example

echo $code = CUserCounter::GetValue($USER->GetID(), 'code1'); 


© «Bitrix24», 2001-2022
Up