HistoryService
class \
- Implements
- SingletonInterface
Service for history
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $backendUserNames : array
- $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.
- 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
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
Return values
LanguageServicegetUserName()
Gets the username of a backend user.
protected
getUserName(string $user) : string
Parameters
- $user : string