/** * Logging actions from TCEmain * * @param string Table name the log entry is concerned with. Blank if NA * @param integer Record UID. Zero if NA * @param integer Action number: 0=No category, 1=new record, 2=update record, 3= delete record, 4= move record, 5= Check/evaluate * @param integer Normally 0 (zero). If set, it indicates that this log-entry is used to notify the backend of a record which is moved to another location * @param integer The severity: 0 = message, 1 = error, 2 = System Error, 3 = security notice (admin) * @param string Default error message in english * @param integer This number is unique for every combination of $type and $action. This is the error-message number, which can later be used to translate error messages. 0 if not categorized, -1 if temporary * @param array Array with special information that may go into $details by '%s' marks / sprintf() when the log is shown * @param integer The page_uid (pid) where the event occurred. Used to select log-content for specific pages. * @param string NEW id for new records * @return integer Log entry UID * @see class.t3lib_userauthgroup.php */ function log($table, $recuid, $action, $recpid, $error, $details, $details_nr = -1, $data = array(), $event_pid = -1, $NEWid = '') { if ($this->enableLogging) { $type = 1; // Type value for tce_db.php if (!$this->storeLogMessages) { $details = ''; } if ($error > 0) { $this->errorLog[] = '[' . $type . '.' . $action . '.' . $details_nr . ']: ' . $details; } return $this->BE_USER->writelog($type, $action, $error, $details_nr, $details, $data, $table, $recuid, $recpid, $event_pid, $NEWid); } }