UNB Components Code Reference

UnbLog::Add method

Adds a new log entry.

public static function UnbLog::Add ($type, $id, $data = null, $overrideUserId = null);

Parameters

type

(int) Event type. See the UnbLogType constants.

id

(int) Event ID. See the UnbLogEvent constants.

data  –  optional, default: null

(array) Associative array of event data.

overrideUserId  –  optional, default: null

(int) Use this user ID for the log instead of the session user.

Exceptions thrown

InvalidArgumentException 

On invalid argument type or value.

UnbDatabaseException No description available.

Member of class: UnbLog

Implementation file: log.class.php, line 103

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