dev.obliquid.com: obliquid
[ class tree: obliquid ] [ index: obliquid ] [ all elements ]

Class: logger

Source Location: Program_Root/classes/obliquid/logger.php

Class Overview


logger class


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 40]
logger class





[ Top ]


Class Variables

$id_change = 0

[line 50]



Tags:

var:  id_change change id, a change is like a transaction

Type:   integer


[ Top ]

$is_master = true

[line 55]



Tags:

var:  is_master true if the logging entry is a master one (the first one of the operation or not)

Type:   boolean


[ Top ]

$level = 2

[line 47]



Tags:

var:  log level, default 2

Type:   text


[ Top ]

$module = ""

[line 44]



Tags:

var:  module module name of the module logging the operation

Type:   text


[ Top ]



Class Methods


method newChange [line 78]

void newChange( )

Open a new operation by calculating a new change number





[ Top ]

method setLevel [line 71]

void setLevel( integer $level)

Set importance of the operation 1-3 with 1 most important.

A debug operation would be of level 3, a database operation would be of level 2, a critical error or a very important operation would be of level 1






Parameters:

integer   $level   importance of the operation

[ Top ]

method setModule [line 60]

void setModule( text $module)

Set module short name





Parameters:

text   $module   module name

[ Top ]

method write [line 95]

void write( text $logentry, mixed $operation, [text $tablen = ""], [text $prikey_val = ""], [array $newvalue = array()], [array $oldvalue = array()])

write a log entry





Parameters:

text   $logentry   log message
text   $tablen   table name
text   $prikey_val   value of the primary key
array   $newvalue   an array with new values of the record, it can as well contain all the new record, the logger class will detect modified fields automatically
array   $oldvalue   an array with the old values of the record, if any. Like before it can contain the old values of the modified fiels, or all the fields

[ Top ]


Documentation generated on Tue, 29 Mar 2005 09:03:58 -0800 by phpDocumentor 1.2.0rc2