CounterController uses CommandTrait
Table of Contents
Constants
- STEP_LIMIT = 1000
Methods
- __construct() : mixed
- CounterBroker constructor.
- isEnabled() : bool
- Checks if this counter is enabled
- process() : void
- Processes event based on a given event type
- processQueueItem() : void
- Processes item from b_sonet_scorer_queue
- recountAll() : void
- reset() : void
- updateLeftMenuCounter() : void
- Updates the left menu counter
Constants
STEP_LIMIT
public
mixed
STEP_LIMIT
= 1000
Methods
__construct()
CounterBroker constructor.
public
__construct([int $userId = 0 ]) : mixed
Parameters
- $userId : int = 0
isEnabled()
Checks if this counter is enabled
public
static isEnabled([int $userId = 0 ]) : bool
Parameters
- $userId : int = 0
Return values
boolprocess()
Processes event based on a given event type
public
process(Event $event) : void
Parameters
- $event : Event
processQueueItem()
Processes item from b_sonet_scorer_queue
public
processQueueItem(array<string|int, mixed> $queueItem) : void
Parameters
- $queueItem : array<string|int, mixed>
Tags
recountAll()
public
recountAll() : void
reset()
public
static reset([int $userId = 0 ][, array<string|int, mixed> $types = [] ][, array<string|int, mixed> $logIds = [] ][, array<string|int, mixed> $groupIds = [] ][, array<string|int, mixed> $exceptGroups = [] ]) : void
Parameters
- $userId : int = 0
- $types : array<string|int, mixed> = []
- $logIds : array<string|int, mixed> = []
- $groupIds : array<string|int, mixed> = []
- $exceptGroups : array<string|int, mixed> = []
updateLeftMenuCounter()
Updates the left menu counter
public
updateLeftMenuCounter() : void