LeadChannelStatisticEntry extends StatisticEntryBase
Table of Contents
Methods
- get() : array<string|int, mixed>
- Get record
- getAll() : array<string|int, mixed>
- Get all
- getCurrent() : LeadChannelStatisticEntry
- Get current instance
- isRegistered() : bool
- Check if entity is registered
- nullSafeCompareDates() : int
- Compare two dates by Unix timestamp in a null safe way. A NULL is treated as zero timestamp.
- parseDateString() : string|null
- Parse date from string.
- register() : void
- Register Entity
- unregister() : void
- Unregister Entity
Methods
get()
Get record
public
static get(int $ownerID, int $channelTypeID) : array<string|int, mixed>
Parameters
- $ownerID : int
-
Owner ID.
- $channelTypeID : int
-
Channel Type ID.
Return values
array<string|int, mixed>getAll()
Get all
public
static getAll(int $ownerID) : array<string|int, mixed>
Parameters
- $ownerID : int
-
Owner ID.
Return values
array<string|int, mixed>getCurrent()
Get current instance
public
static getCurrent() : LeadChannelStatisticEntry
Return values
LeadChannelStatisticEntryisRegistered()
Check if entity is registered
public
static isRegistered(int $ownerID, int $channelTypeID) : bool
Parameters
- $ownerID : int
-
Owner ID.
- $channelTypeID : int
-
Channel Type ID.
Return values
boolnullSafeCompareDates()
Compare two dates by Unix timestamp in a null safe way. A NULL is treated as zero timestamp.
public
static nullSafeCompareDates([Date|null $first = null ][, Date|null $second = null ]) : int
Return a value less than 0 if this first date is before second. Return 0 if they are equal. Return a value greater than 0 if this first date is after second.
Parameters
Return values
intparseDateString()
Parse date from string.
public
static parseDateString(string $str) : string|null
Parameters
- $str : string
-
Source string.
Return values
string|nullregister()
Register Entity
public
static register(int $ownerID, int $channelTypeID[, array<string|int, mixed> $bindingParams = null ][, array<string|int, mixed> $entityFields = null ][, array<string|int, mixed> $options = null ]) : void
Parameters
- $ownerID : int
-
Owner ID.
- $channelTypeID : int
-
Channel Type ID.
- $bindingParams : array<string|int, mixed> = null
-
Array of binding parameters. For example ORIGIN_ID and COMPONENT_ID.*
- $entityFields : array<string|int, mixed> = null
- $options : array<string|int, mixed> = null
Tags
unregister()
Unregister Entity
public
static unregister(int $ownerID[, int $channelTypeID = 0 ]) : void
Parameters
- $ownerID : int
-
Owner ID.
- $channelTypeID : int = 0
-
Channel Type ID.