View
Table of Contents
Constants
- SESSION_VIEWS_KEY = 'LANDING_VIEWS'
- Key for session array for storing viewed landings.
Methods
- getNumberUniqueViews() : int
- getUniqueUserData() : array<string|int, mixed>
- inc() : void
- Inc views of page.
Constants
SESSION_VIEWS_KEY
Key for session array for storing viewed landings.
public
mixed
SESSION_VIEWS_KEY
= 'LANDING_VIEWS'
Methods
getNumberUniqueViews()
public
static getNumberUniqueViews(int $lid) : int
Parameters
- $lid : int
Return values
intgetUniqueUserData()
public
static getUniqueUserData(int $lid) : array<string|int, mixed>
Parameters
- $lid : int
Return values
array<string|int, mixed>inc()
Inc views of page.
public
static inc(int $lid[, int $uid = null ]) : void
Parameters
- $lid : int
-
Landing id.
- $uid : int = null
-
User id (current by default).