HistoryService

class \TYPO3\CMS\Workspaces\Service\HistoryService

Implements
SingletonInterface

Service for history

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$backendUserNames  : array
$differencesObject  : DiffUtility|null
$historyEntries  : array

Methods

__construct()  : mixed
Creates this object.
getHistory()  : array
Gets the editing history of a record.
getStageChanges()  : array
getDifferences()  : array
Gets the differences between two record versions out of one record history entry.
getDifferencesObject()  : DiffUtility
Gets an instance of the record differences utility.
getHistoryEntries()  : array
Gets an instance of the record history of a record.
getHistoryEntry()  : array
Gets the human readable representation of one record history entry.
getLanguageService()  : LanguageService
getUserName()  : string
Gets the username of a backend user.

Properties

$backendUserNames

protected array $backendUserNames

$historyEntries

protected array $historyEntries = []

Methods

__construct()

Creates this object.

public __construct() : mixed

getHistory()

Gets the editing history of a record.

public getHistory(string $table, int $id) : array

Parameters

$table : string

Name of the table

$id : int

Uid of the record

Return values

array —

Record history entries

getStageChanges()

public getStageChanges(string $table, int $id) : array

Parameters

$table : string
$id : int

Return values

array

getDifferences()

Gets the differences between two record versions out of one record history entry.

protected getDifferences(array $entry) : array

Parameters

$entry : array

Record history entry

Return values

array

getHistoryEntries()

Gets an instance of the record history of a record.

protected getHistoryEntries(string $table, int $id) : array

Parameters

$table : string

Name of the table

$id : int

Uid of the record

Return values

array

getHistoryEntry()

Gets the human readable representation of one record history entry.

protected getHistoryEntry(array $entry) : array

Parameters

$entry : array

Record history entry

Tags

see
getHistory

Return values

array

getUserName()

Gets the username of a backend user.

protected getUserName(string $user) : string

Parameters

$user : string

Return values

string
On this page