CommunicationStatistics
Table of Contents
Constants
- DEFAULT_SOURCE = 'none'
- STATISTICS_MARKS = 'MARKS'
- STATISTICS_MONEY = 'MONEY'
- STATISTICS_QUANTITY = 'QUANTITY'
- STATISTICS_STATUSES = 'STATUSES'
- STATISTICS_STREAMS = 'STREAMS'
Methods
- getLoadAverages() : array<string|int, mixed>
- Get communication load averages.
- getLoadCurrents() : mixed
- getLoadMaxValues() : mixed
- rebuild() : mixed
- registerActivity() : mixed
- synchronizeByOwner() : mixed
- unregisterActivity() : mixed
- unregisterByOwner() : mixed
- updateActivity() : mixed
Constants
DEFAULT_SOURCE
public
mixed
DEFAULT_SOURCE
= 'none'
STATISTICS_MARKS
public
mixed
STATISTICS_MARKS
= 'MARKS'
STATISTICS_MONEY
public
mixed
STATISTICS_MONEY
= 'MONEY'
STATISTICS_QUANTITY
public
mixed
STATISTICS_QUANTITY
= 'QUANTITY'
STATISTICS_STATUSES
public
mixed
STATISTICS_STATUSES
= 'STATUSES'
STATISTICS_STREAMS
public
mixed
STATISTICS_STREAMS
= 'STREAMS'
Methods
getLoadAverages()
Get communication load averages.
public
static getLoadAverages(int $ownerTypeId[, null|int $ownerId = null ]) : array<string|int, mixed>
Parameters
- $ownerTypeId : int
-
Owner type id. @see \CCrmOwnerType.
- $ownerId : null|int = null
-
Owner id.
Return values
array<string|int, mixed>getLoadCurrents()
public
static getLoadCurrents(mixed $ownerTypeId, mixed $ownerId) : mixed
Parameters
- $ownerTypeId : mixed
- $ownerId : mixed
getLoadMaxValues()
public
static getLoadMaxValues(mixed $ownerTypeId) : mixed
Parameters
- $ownerTypeId : mixed
rebuild()
public
static rebuild(mixed $ownerTypeId, array<string|int, mixed> $ownerIds) : mixed
Parameters
- $ownerTypeId : mixed
- $ownerIds : array<string|int, mixed>
registerActivity()
public
static registerActivity(array<string|int, mixed> $activity) : mixed
Parameters
- $activity : array<string|int, mixed>
synchronizeByOwner()
public
static synchronizeByOwner(mixed $ownerTypeId, mixed $ownerId[, mixed $ownerFields = null ]) : mixed
Parameters
- $ownerTypeId : mixed
- $ownerId : mixed
- $ownerFields : mixed = null
unregisterActivity()
public
static unregisterActivity(array<string|int, mixed> $activity) : mixed
Parameters
- $activity : array<string|int, mixed>
unregisterByOwner()
public
static unregisterByOwner(mixed $ownerTypeId, mixed $ownerId) : mixed
Parameters
- $ownerTypeId : mixed
- $ownerId : mixed
updateActivity()
public
static updateActivity(array<string|int, mixed> $activity, array<string|int, mixed> $prevFields) : mixed
Parameters
- $activity : array<string|int, mixed>
- $prevFields : array<string|int, mixed>