HistoryService
readonly class \
- Implements
- SingletonInterface
Internal
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Methods
- __construct() : mixed
- 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.
- 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
Methods
__construct()
public
__construct(Avatar $avatar, DiffUtility $diffUtility, FlexFormValueFormatter $flexFormValueFormatter, RecordHistory $recordHistory) : mixed
Parameters
- $avatar : Avatar
- $diffUtility : DiffUtility
- $flexFormValueFormatter : FlexFormValueFormatter
- $recordHistory : RecordHistory
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
arraygetDifferences()
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
arraygetHistoryEntries()
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
arraygetHistoryEntry()
Gets the human readable representation of one record history entry.
protected
getHistoryEntry(array $entry) : array
Parameters
- $entry : array
-
Record history entry
Tags
Return values
arraygetLanguageService()
protected
getLanguageService() : LanguageService