class LogEntry (View source)

Properties

int|null $id
string|null $channel
DateTime|null $time
string|null $message
string|null $level
UserInfo|null $user

Methods

__construct($row = null)

No description

int|null
getId()

No description

setId(int|null $id)

No description

string|null
getChannel()

No description

setChannel(string|null $channel)

No description

DateTime|null
getTime()

No description

setTime(DateTime|null $time)

No description

string|null
getMessage()

No description

setMessage(string|null $message)

No description

string|null
getLevel()

No description

setLevel(string|null $level)

No description

UserInfo|null
getUser()

No description

setUser(UserInfo|null $user)

No description

string
getLevelName()

Gets the name of the logging level.

string
getLevelDisplayName()

Gets the name of the logging level.

string
getChannelDisplayName()

Gets the channel name of the logging level.

string
getLevelIcon()

Gets the HTML code for the icon of the logging level.

int
getUserID()

Gets the user id of the user that caused the log.

User|null
getUserObject()

Gets the user object of the user that caused the log.

string
getDisplayTimestamp()

Gets the formatted time of the log timestamp.

string
getTimestamp()

Gets the timestamp of the log.

static LogEntry|null
getByID(int $logID)

Gets the log object from its id.

delete()

Deletes the log entry.

Details

__construct($row = null)

No description

Parameters

$row

int|null getId()

No description

Return Value

int|null

LogEntry setId(int|null $id)

No description

Parameters

int|null $id

Return Value

LogEntry

string|null getChannel()

No description

Return Value

string|null

LogEntry setChannel(string|null $channel)

No description

Parameters

string|null $channel

Return Value

LogEntry

DateTime|null getTime()

No description

Return Value

DateTime|null

LogEntry setTime(DateTime|null $time)

No description

Parameters

DateTime|null $time

Return Value

LogEntry

string|null getMessage()

No description

Return Value

string|null

LogEntry setMessage(string|null $message)

No description

Parameters

string|null $message

Return Value

LogEntry

string|null getLevel()

No description

Return Value

string|null

LogEntry setLevel(string|null $level)

No description

Parameters

string|null $level

Return Value

LogEntry

UserInfo|null getUser()

No description

Return Value

UserInfo|null

LogEntry setUser(UserInfo|null $user)

No description

Parameters

UserInfo|null $user

Return Value

LogEntry

string getLevelName()

Gets the name of the logging level.

Return Value

string

string getLevelDisplayName()

Gets the name of the logging level.

Return Value

string

string getChannelDisplayName()

Gets the channel name of the logging level.

Return Value

string

string getLevelIcon()

Gets the HTML code for the icon of the logging level.

Return Value

string

int getUserID()

Gets the user id of the user that caused the log.

Return Value

int

User|null getUserObject()

Gets the user object of the user that caused the log.

Return Value

User|null

string getDisplayTimestamp()

Gets the formatted time of the log timestamp.

Return Value

string

string getTimestamp()

Gets the timestamp of the log.

Return Value

string

static LogEntry|null getByID(int $logID)

Gets the log object from its id.

Parameters

int $logID

Id of the log

Return Value

LogEntry|null

delete()

Deletes the log entry.