Bitrix API

Counter

Table of Contents

Methods

__construct()  : mixed
getCounterId()  : string
getValue()  : int
setValue()  : bool
sync()  : void

Methods

__construct()

public __construct(string $counterId[, SyncInterface|null $syncStrategy = null ]) : mixed
Parameters
$counterId : string
$syncStrategy : SyncInterface|null = null

getCounterId()

public getCounterId() : string
Return values
string

getValue()

public getValue(User $user) : int
Parameters
$user : User
Return values
int

setValue()

public setValue(User $user, int $value) : bool
Parameters
$user : User
$value : int
Return values
bool

        
On this page

Search results