Visit
class Visit extends Model
A player's visit on the website
Traits
A timestamp column
Constants
TABLE |
The name of the database table used for queries |
Methods
static Visit
enterVisit(int $visitor, string $ip, string $host, string $user_agent, string $referrer, string $timestamp = 'now')
Enter a new visit into the database
static QueryBuilder
getQueryBuilder()
Get a query builder for players
string
getIpAddress()
Get the IP address of the player
string
getHost()
Get the visiting host
string
getUserAgent()
Get the visitor's user agent
string
getReferrer()
Get the visitor's referer or referrer
Details
at line line 76
static Visit
enterVisit(int $visitor, string $ip, string $host, string $user_agent, string $referrer, string $timestamp = 'now')
Enter a new visit into the database
at line line 94
static QueryBuilder
getQueryBuilder()
Get a query builder for players
at line line 109
Player
getPlayer()
Get the visiting player
at line line 118
string
getIpAddress()
Get the IP address of the player
at line line 127
string
getHost()
Get the visiting host
at line line 136
string
getUserAgent()
Get the visitor's user agent
at line line 145
string
getReferrer()
Get the visitor's referer or referrer