Phpxforms documentation

Logger
in package

Log action into database

Tags
author

DaVee

version
0.87dev
license

Lesser General Public License 2.1 or later; see http://www.gnu.org/licenses/lgpl-2.1.html

Table of Contents

Properties

$db  : SQL
$insert  : PDOStatement

Methods

__construct()  : mixed
add()  : void
Insert event into database
reset()  : void
Clean log history
getIp()  : string
Get ip address (for easier hiding/hashing if necessary)

Properties

$insert

private PDOStatement $insert

Methods

__construct()

public __construct(SQL $db) : mixed
Parameters
$db : SQL

add()

Insert event into database

public add(string $component, string|null $detail[, int $userId = 0 ][, int $critical = 0 ]) : void
Parameters
$component : string
$detail : string|null
$userId : int = 0
$critical : int = 0

reset()

Clean log history

public reset(int $userId) : void
Parameters
$userId : int

getIp()

Get ip address (for easier hiding/hashing if necessary)

protected getIp() : string
Return values
string

        
On this page

Search results