Documentation

GetValues

CUserCounter::GetValues(
 $user_id, 
 $site_id = SITE_ID
);

The method allows to get list of all user counters. Static method.

Parameters

Parameter Description Available from version
user_id User ID. Required parameter.11.5.2
site_id Site ID. Optional parameter. Receives the current value by default.11.5.2

Returned value

List of specific user counters on site.

Example

$codes = CUserCounter::GetValues($USER->GetID(), SITE_ID);
echo '<pre>'.print_r($codes, 1).'</pre>'; 


© «Bitrix24», 2001-2024
Up