\App\Site\ModelsRequestLog

Request Log Model

Summary

Methods
Properties
Constants
getWebsite()
fillWithRequest()
getId()
getWebsiteId()
getUrl()
getMethod()
getUserId()
getIpAddress()
getUserAgent()
getResponseCode()
getCreatedAt()
getUpdatedAt()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
matchWebsite()
No private properties found
N/A

Methods

fillWithRequest()

fillWithRequest(\Symfony\Component\HttpFoundation\Request  $request,\App\Base\Abstracts\Controllers\BasePage|null  $controller = null): $this

fills log with request object

Parameters

\Symfony\Component\HttpFoundation\Request $request
\App\Base\Abstracts\Controllers\BasePage|null $controller

Throws

\Degami\Basics\Exceptions\BasicException

Returns

$this

getId()

getId(): integer

Returns

integer

getWebsiteId()

getWebsiteId(): integer

Returns

integer

getUrl()

getUrl(): string

Returns

string

getMethod()

getMethod(): string

Returns

string

getUserId()

getUserId(): string

Returns

string

getIpAddress()

getIpAddress(): string

Returns

string

getUserAgent()

getUserAgent(): string

Returns

string

getResponseCode()

getResponseCode(): integer

Returns

integer

getCreatedAt()

getCreatedAt(): \DateTime

Returns

\DateTime

getUpdatedAt()

getUpdatedAt(): \DateTime

Returns

\DateTime

matchWebsite()

matchWebsite(string  $host): integer|null

matches request log with website

Parameters

string $host

Throws

\Degami\Basics\Exceptions\BasicException

Returns

integer|null