58 foreach ((array)$this->getHistoryObject($table, $id)->changeLog as $entry) {
76 if (!empty($entry[
'action'])) {
77 $differences = $entry[
'action'];
83 'user' => htmlspecialchars($this->
getUserName($entry[
'user'])),
84 'differences' => $differences
96 $differences = array();
97 $tableName = $entry[
'tablename'];
98 if (is_array($entry[
'newRecord'])) {
99 $fields = array_keys($entry[
'newRecord']);
100 foreach ($fields as $field) {
101 if (!empty(
$GLOBALS[
'TCA'][$tableName][
'columns'][$field][
'config'][
'type']) &&
$GLOBALS[
'TCA'][$tableName][
'columns'][$field][
'config'][
'type'] !==
'passthrough') {
104 BackendUtility::getProcessedValue($tableName, $field, $entry[
'oldRecord'][$field], 0, TRUE),
105 BackendUtility::getProcessedValue($tableName, $field, $entry[
'newRecord'][$field], 0, TRUE)
107 if (!empty($fieldDifferences)) {
108 $differences[] = array(
110 'html' => nl2br(trim($fieldDifferences)),
126 $userName =
'unknown';
127 if (!empty($this->backendUserNames[$user][
'username'])) {
128 $userName = $this->backendUserNames[$user][
'username'];
140 protected function getHistoryObject($table, $id) {
141 if (!isset($this->historyObjects[$table][$id])) {
144 $historyObject->element = $table .
':' . $id;
145 $historyObject->createChangeLog();
146 $this->historyObjects[$table][$id] = $historyObject;
148 return $this->historyObjects[$table][$id];
157 if (!isset($this->differencesObject)) {
static getItemLabel($table, $col, $printAllWrap='')
getHistoryEntry(array $entry)
getDifferences(array $entry)
static makeInstance($className)
static getUserNames($fields='username, usergroup, usergroup_cached_list, uid', $where='')
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]