RemoteServer
readonly class \
- Uses
- LogDataTrait
Internal
This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
- $avatar : Avatar
- $connectionPool : ConnectionPool
- $eventDispatcher : EventDispatcherInterface
- $flexFormValueFormatter : FlexFormValueFormatter
- $gridDataService : GridDataService
- $iconFactory : IconFactory
- $searchableSchemaFieldsCollector : SearchableSchemaFieldsCollector
- $stagesService : StagesService
- $visibleSchemaFieldsCollector : VisibleSchemaFieldsCollector
- $workspaceRepository : WorkspaceRepository
- $workspaceService : WorkspaceService
- $workspaceStageRepository : WorkspaceStageRepository
Methods
- __construct() : mixed
- checkIntegrity() : array
- Checks integrity of elements before performing actions on them.
- getRowDetails() : array
- Fetch further information to current selected workspace record.
- getWorkspaceInfos() : array
- Get List of workspace changes
- createIntegrityService() : IntegrityService
- Creates a new instance of the integrity service for the given set of affected elements.
- formatLogDetails() : string
- Replaces a string with placeholders (%s or {myPlaceholder}) with its substitutes.
- formatLogDetailsStatic() : string
- Static version for ViewHelpers etc.
- formatValue() : string
- getAffectedElements() : array
- Gets affected elements on publishing/swapping actions.
- getBackendUser() : BackendUserAuthentication
- getCommentsForRecord() : array
- Prepares all comments of the stage change history entries for returning the JSON structure
- getCurrentWorkspace() : int
- Gets the current workspace ID.
- getLanguageService() : LanguageService
- getStageChangesFromSysLog() : array
- Find all stage changes from sys_log that do not have a historyId. Can safely be removed in future TYPO3 versions as this fallback layer only makes sense in TYPO3 v11 when old records want to have a history.
- getSuitableFields() : array
- Gets the fields suitable for being displayed in new and delete diff views
- prepareFileReferenceDifferences() : array|null
- Prepares difference view for file references.
- unserializeLogData() : array|null
- Useful for handling old serialized data, which might have been migrated to JSON encoded properties already.
Properties
$avatar
protected
Avatar
$avatar
$connectionPool
protected
ConnectionPool
$connectionPool
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$flexFormValueFormatter
protected
FlexFormValueFormatter
$flexFormValueFormatter
$gridDataService
protected
GridDataService
$gridDataService
$iconFactory
protected
IconFactory
$iconFactory
$searchableSchemaFieldsCollector
protected
SearchableSchemaFieldsCollector
$searchableSchemaFieldsCollector
$stagesService
protected
StagesService
$stagesService
$visibleSchemaFieldsCollector
protected
VisibleSchemaFieldsCollector
$visibleSchemaFieldsCollector
$workspaceRepository
protected
WorkspaceRepository
$workspaceRepository
$workspaceService
protected
WorkspaceService
$workspaceService
$workspaceStageRepository
protected
WorkspaceStageRepository
$workspaceStageRepository
Methods
__construct()
public
__construct(GridDataService $gridDataService, StagesService $stagesService, WorkspaceService $workspaceService, EventDispatcherInterface $eventDispatcher, FlexFormValueFormatter $flexFormValueFormatter, DiffUtility $diffUtility, IconFactory $iconFactory, Avatar $avatar, ConnectionPool $connectionPool, SearchableSchemaFieldsCollector $searchableSchemaFieldsCollector, VisibleSchemaFieldsCollector $visibleSchemaFieldsCollector, WorkspaceRepository $workspaceRepository, WorkspaceStageRepository $workspaceStageRepository) : mixed
Parameters
- $gridDataService : GridDataService
- $stagesService : StagesService
- $workspaceService : WorkspaceService
- $eventDispatcher : EventDispatcherInterface
- $flexFormValueFormatter : FlexFormValueFormatter
- $diffUtility : DiffUtility
- $iconFactory : IconFactory
- $avatar : Avatar
- $connectionPool : ConnectionPool
- $searchableSchemaFieldsCollector : SearchableSchemaFieldsCollector
- $visibleSchemaFieldsCollector : VisibleSchemaFieldsCollector
- $workspaceRepository : WorkspaceRepository
- $workspaceStageRepository : WorkspaceStageRepository
checkIntegrity()
Checks integrity of elements before performing actions on them.
public
checkIntegrity(stdClass $parameters) : array
Parameters
- $parameters : stdClass
Return values
arraygetRowDetails()
Fetch further information to current selected workspace record.
public
getRowDetails(WorkspaceStage[] $stages, stdClass $parameter) : array
Parameters
- $stages : WorkspaceStage[]
- $parameter : stdClass
Return values
arraygetWorkspaceInfos()
Get List of workspace changes
public
getWorkspaceInfos(stdClass $parameter, ServerRequestInterface $request) : array
Parameters
- $parameter : stdClass
- $request : ServerRequestInterface
Return values
array —$data
createIntegrityService()
Creates a new instance of the integrity service for the given set of affected elements.
protected
createIntegrityService(CombinedRecord[] $affectedElements) : IntegrityService
Parameters
- $affectedElements : CombinedRecord[]
Tags
Return values
IntegrityServiceformatLogDetails()
Replaces a string with placeholders (%s or {myPlaceholder}) with its substitutes.
protected
formatLogDetails(string $detailString, mixed $substitutes) : string
Parameters
- $detailString : string
- $substitutes : mixed
Return values
stringformatLogDetailsStatic()
Static version for ViewHelpers etc.
protected
static formatLogDetailsStatic(string $detailString, array $substitutes) : string
Replaces a string with placeholders (%s or {myPlaceholder}) with its substitutes.
Parameters
- $detailString : string
- $substitutes : array
Return values
stringformatValue()
protected
formatValue(string $table, string $fieldName, string $value, int $uid, array $tcaConfiguration, array $fullRow) : string
Parameters
- $table : string
- $fieldName : string
- $value : string
- $uid : int
- $tcaConfiguration : array
- $fullRow : array
Return values
stringgetAffectedElements()
Gets affected elements on publishing/swapping actions.
protected
getAffectedElements(stdClass $parameters) : array
Affected elements have a dependency, e.g. translation overlay and the default origin record - thus, the default record would be affected if the translation overlay shall be published.
Parameters
- $parameters : stdClass
Return values
arraygetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetCommentsForRecord()
Prepares all comments of the stage change history entries for returning the JSON structure
protected
getCommentsForRecord(array $historyEntries, array $additionalChangesFromLog) : array
Parameters
- $historyEntries : array
- $additionalChangesFromLog : array
-
this is not in use since 2022 anymore, and can be removed in TYPO3 v13.0 the latest.
Return values
arraygetCurrentWorkspace()
Gets the current workspace ID.
protected
getCurrentWorkspace() : int
Return values
intgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetStageChangesFromSysLog()
Find all stage changes from sys_log that do not have a historyId. Can safely be removed in future TYPO3 versions as this fallback layer only makes sense in TYPO3 v11 when old records want to have a history.
protected
getStageChangesFromSysLog(string $table, int $uid) : array
Parameters
- $table : string
- $uid : int
Return values
arraygetSuitableFields()
Gets the fields suitable for being displayed in new and delete diff views
protected
getSuitableFields(string $table, array $row) : array
Parameters
- $table : string
- $row : array
Return values
arrayprepareFileReferenceDifferences()
Prepares difference view for file references.
protected
prepareFileReferenceDifferences(FileReference[] $liveFileReferences, FileReference[] $versionFileReferences[, bool|false $useThumbnails = false ]) : array|null
Parameters
- $liveFileReferences : FileReference[]
- $versionFileReferences : FileReference[]
- $useThumbnails : bool|false = false
Return values
array|nullunserializeLogData()
Useful for handling old serialized data, which might have been migrated to JSON encoded properties already.
protected
unserializeLogData(mixed $logData) : array|null
Parameters
- $logData : mixed