HistoryService implements SingletonInterface

Internal

Table of Contents

Interfaces

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

Properties

$backendUserNames  : array<string|int, mixed>
$historyEntries  : array<string|int, mixed>

Methods

__construct()  : mixed
getHistory()  : array<string|int, mixed>
Gets the editing history of a record.
getStageChanges()  : array<string|int, mixed>
getDifferences()  : array<string|int, mixed>
Gets the differences between two record versions out of one record history entry.
getHistoryEntries()  : array<string|int, mixed>
Gets an instance of the record history of a record.
getHistoryEntry()  : array<string|int, mixed>
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<string|int, mixed> $backendUserNames

$historyEntries

protected array<string|int, mixed> $historyEntries = []

Methods

getHistory()

Gets the editing history of a record.

public getHistory(string $table, int $id) : array<string|int, mixed>
Parameters
$table : string

Name of the table

$id : int

Uid of the record

Return values
array<string|int, mixed>

Record history entries

getStageChanges()

public getStageChanges(string $table, int $id) : array<string|int, mixed>
Parameters
$table : string
$id : int
Return values
array<string|int, mixed>

getDifferences()

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

protected getDifferences(array<string|int, mixed> $entry) : array<string|int, mixed>
Parameters
$entry : array<string|int, mixed>

Record history entry

Return values
array<string|int, mixed>

getHistoryEntries()

Gets an instance of the record history of a record.

protected getHistoryEntries(string $table, int $id) : array<string|int, mixed>
Parameters
$table : string

Name of the table

$id : int

Uid of the record

Return values
array<string|int, mixed>

getHistoryEntry()

Gets the human readable representation of one record history entry.

protected getHistoryEntry(array<string|int, mixed> $entry) : array<string|int, mixed>
Parameters
$entry : array<string|int, mixed>

Record history entry

Tags
see
getHistory
Return values
array<string|int, mixed>

getUserName()

Gets the username of a backend user.

protected getUserName(int $user) : string
Parameters
$user : int
Return values
string

        
On this page

Search results