AnalyticsEntry
extends Entity
implements
JsonSerializable
Uses
EntityTrait
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
-
$brand
: string|null
-
$browser
: string|null
-
$browserVersion
: string|null
-
$country
: string|null
-
$device
: string|null
-
$deviceType
: DeviceType|null
-
$entityId
: int|null
-
$entityType
: EntityType|null
-
$id
: int
-
$language
: string|null
-
$operatingSystem
: string|null
-
$operatingSystemVersion
: string|null
-
$referer
: string|null
-
$route
: string|null
-
$status
: int
-
$timestamp
: DateTime
-
$uniqueVisit
: bool
-
$userAgent
: string|null
-
format()
: array<string, string|int|bool|null>
-
getPastInterval()
: array<string|int, array{visits: int, group: string}>
-
getPastIntervalGrouped()
: array<string|int, array{visits: int, group: string}>
-
getPastNMonthsForEntity()
: array<string|int, array{visits: int, group: string}>
-
getRelatedEntity()
: BlogPost|BlogCategory|Form|Gallery|ModernPage|ClassicPage|Artist|null
-
getRelatedMenuItem()
: MenuItem|null
-
getTotalPastInterval()
: int
-
jsonSerialize()
: array<string, string|int|bool|null>
$brand
public
string|null
$brand
$browser
public
string|null
$browser
$browserVersion
public
string|null
$browserVersion
$country
public
string|null
$country
$device
public
string|null
$device
$deviceType
public
DeviceType|null
$deviceType
$entityId
public
int|null
$entityId
$entityType
public
EntityType|null
$entityType
$id
public
int
$id
$language
public
string|null
$language
$operatingSystem
public
string|null
$operatingSystem
$operatingSystemVersion
public
string|null
$operatingSystemVersion
$referer
public
string|null
$referer
$route
public
string|null
$route
$status
public
int
$status
= 200
$timestamp
public
DateTime
$timestamp
$uniqueVisit
public
bool
$uniqueVisit
$userAgent
public
string|null
$userAgent
public
format() : array<string, string|int|bool|null>
Return values
array<string, string|int|bool|null>
—
getPastInterval()
public
static getPastInterval([string|null $interval = null ][, EntityType|null $entityType = null ][, int|null $id = null ][, bool $uniqueOnly = false ]) : array<string|int, array{visits: int, group: string}>
Parameters
-
$interval
: string|null
= null
-
-
$entityType
: EntityType|null
= null
-
-
$id
: int|null
= null
-
-
$uniqueOnly
: bool
= false
-
Return values
array<string|int, array{visits: int, group: string}>
—
getPastIntervalGrouped()
public
static getPastIntervalGrouped(string $group[, string|null $interval = null ][, EntityType|null $entityType = null ][, int|null $id = null ][, bool $uniqueOnly = false ]) : array<string|int, array{visits: int, group: string}>
Parameters
-
$group
: string
-
-
$interval
: string|null
= null
-
-
$entityType
: EntityType|null
= null
-
-
$id
: int|null
= null
-
-
$uniqueOnly
: bool
= false
-
Return values
array<string|int, array{visits: int, group: string}>
—
getPastNMonthsForEntity()
public
static getPastNMonthsForEntity(int $months, EntityType $type, int $id) : array<string|int, array{visits: int, group: string}>
Parameters
-
$months
: int
-
-
$type
: EntityType
-
-
$id
: int
-
Return values
array<string|int, array{visits: int, group: string}>
—
public
getRelatedEntity() : BlogPost|BlogCategory|Form|Gallery|ModernPage|ClassicPage|Artist|null
Return values
BlogPost|BlogCategory|Form|Gallery|ModernPage|ClassicPage|Artist|null
—
public
getRelatedMenuItem() : MenuItem|null
Return values
MenuItem|null
—
getTotalPastInterval()
public
static getTotalPastInterval(string|null $interval) : int
Parameters
-
$interval
: string|null
-
Return values
int
—
jsonSerialize()
public
jsonSerialize() : array<string, string|int|bool|null>
Return values
array<string, string|int|bool|null>
—