\MOD_log

Writes and reads from the logs table.

Replacement for old BW LogStr method.

Summary

Methods
Properties
Constants
get()
writeIdMember()
write()
No public properties found
LOG2FILE
LOG_FILE
No protected methods found
No protected properties found
N/A
__construct()
$_instance
N/A

Constants

LOG2FILE

LOG2FILE

if LOG2FILE is true, stuff gets additionally loged to file

LOG_FILE

LOG_FILE

points to the file, which can be used for additionally loging

Properties

$_instance

$_instance : \MOD_log

Singleton instance

Type

\MOD_log

Methods

get()

get() : \PApps

singleton getter

Returns

\PApps

writeIdMember()

writeIdMember(int $IdMember, string $message, string $type)

Add one entry to log table. If log2file is enabled write to logfile before write to table. addslashes is executed on the message string inside the method.

Parameters

int $IdMember

is the id of the member the log will be applied to

string $message

the parameter to print

string $type

the event, which causes the log

             method to be called

BeWare this function does a nasty parameter change with the $_SESSION["IdMember"] but it restores it as it was before in any cases

write()

write(string $message, string $type)

Add one entry to log table. If log2file is enabled write to logfile before write to table. addslashes is executed on the message string inside the method.

Parameters

string $message

the parameter to print

string $type

the event, which causes the log

             method to be called

__construct()

__construct()