UNB Components Code Reference

UnbLog class

The tag class provides methods for logging events and accessing the log events.

It depends on the UnbDatabase class for a database connection, UnbSession for session user recognition and UnbEnvironment for client-specific information.

Public methods

S Add

Adds a new log entry.

S CountByFilter

Counts log entries filtered by their properties.

S DeleteBefore

Deletes old log entries.

S FindByEventNum

Finds log entries by their event number.

S FindByFilter

Finds log entries by their properties.

Private methods

   Class constructor

Private constructor, does nothing but preventing an unwanted instantiation of this class.

S DeleteBeforeInternal

Deletes old log entries. For internal use only.

S FindByFilterInternal

Finds log entries by their properties. For internal use only.

S GetDatabase

Gets the separate database connection used for logging

S Purge

Deletes old log entries as specified in the configuration.

Private fields

db  –  default: null

Separate database connection

Implementation file: log.class.php, line 45

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-06.