‪TYPO3CMS  9.5
TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer Class Reference

Public Member Functions

 __construct ()
 
array checkIntegrity (\stdClass $parameters)
 
array getWorkspaceInfos ($parameter)
 
array getStageActions ()
 
array getRowDetails ($parameter)
 
array getCommentsForRecord ($uid, $table)
 
array getSystemLanguages (\stdClass $parameters)
 

Protected Member Functions

BackendUserAuthentication getBackendUser ()
 
LanguageService getLanguageService ()
 
DiffUtility getDifferenceHandler ()
 
IntegrityService createIntegrityService (array $affectedElements)
 
array getAffectedElements (\stdClass $parameters)
 
int null validateLanguageParameter (\stdClass $parameters)
 
int getCurrentWorkspace ()
 

Protected Attributes

GridDataService $gridDataService
 
StagesService $stagesService
 
WorkspaceService $workspaceService
 
DiffUtility $differenceHandler
 

Detailed Description

Class RemoteServer

This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 42 of file RemoteServer.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::__construct ( )

Definition at line 60 of file RemoteServer.php.

Member Function Documentation

◆ checkIntegrity()

array TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::checkIntegrity ( \stdClass  $parameters)

Checks integrity of elements before peforming actions on them.

Parameters
\stdClass$parameters
Returns
‪array

Definition at line 73 of file RemoteServer.php.

References TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\createIntegrityService(), and TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getAffectedElements().

◆ createIntegrityService()

IntegrityService TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::createIntegrityService ( array  $affectedElements)
protected

Creates a new instance of the integrity service for the given set of affected elements.

Parameters
CombinedRecord[]$affectedElements
Returns
‪IntegrityService
See also
getAffectedElements

Definition at line 498 of file RemoteServer.php.

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\checkIntegrity().

◆ getAffectedElements()

array TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getAffectedElements ( \stdClass  $parameters)
protected

Gets affected elements on publishing/swapping actions. 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
\stdClass$parameters
Returns
‪array

Definition at line 514 of file RemoteServer.php.

References TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord\create(), TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getCurrentWorkspace(), and TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\validateLanguageParameter().

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\checkIntegrity().

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getBackendUser ( )
protected
Returns
‪BackendUserAuthentication

Definition at line 463 of file RemoteServer.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getRowDetails().

◆ getCommentsForRecord()

array TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getCommentsForRecord (   $uid,
  $table 
)

Gets an array with all sys_log entries and their comments for the given record uid and table

Parameters
int$uid‪uid of changed element to search for in log
string$table‪Name of the record's table
Returns
‪array

Definition at line 380 of file RemoteServer.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\datetime(), and TYPO3\CMS\Backend\Utility\BackendUtility\getRecord().

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getRowDetails().

◆ getCurrentWorkspace()

int TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getCurrentWorkspace ( )
protected

◆ getDifferenceHandler()

DiffUtility TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getDifferenceHandler ( )
protected

Gets the difference handler, parsing differences based on sentences.

Returns
‪DiffUtility

Definition at line 481 of file RemoteServer.php.

References TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\$differenceHandler.

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getRowDetails().

◆ getLanguageService()

LanguageService TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getLanguageService ( )
protected
Returns
‪LanguageService

Definition at line 471 of file RemoteServer.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getRowDetails().

◆ getRowDetails()

◆ getStageActions()

array TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getStageActions ( )

Get List of available workspace actions

Returns
‪array $data

Definition at line 106 of file RemoteServer.php.

References TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getCurrentWorkspace(), and TYPO3\CMS\Workspaces\Service\WorkspaceService\SELECT_ALL_WORKSPACES.

◆ getSystemLanguages()

array TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getSystemLanguages ( \stdClass  $parameters)

Gets all available system languages.

Parameters
\stdClass$parameters
Returns
‪array

Definition at line 433 of file RemoteServer.php.

References TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

◆ getWorkspaceInfos()

array TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::getWorkspaceInfos (   $parameter)

Get List of workspace changes

Parameters
\stdClass$parameter
Returns
‪array $data

Definition at line 89 of file RemoteServer.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), and TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getCurrentWorkspace().

◆ validateLanguageParameter()

int null TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::validateLanguageParameter ( \stdClass  $parameters)
protected

Validates whether the submitted language parameter can be interpreted as integer value.

Parameters
\stdClass$parameters
Returns
‪int|null

Definition at line 541 of file RemoteServer.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getAffectedElements().

Member Data Documentation

◆ $differenceHandler

DiffUtility TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::$differenceHandler
protected

◆ $gridDataService

GridDataService TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::$gridDataService
protected

Definition at line 46 of file RemoteServer.php.

◆ $stagesService

StagesService TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::$stagesService
protected

Definition at line 50 of file RemoteServer.php.

◆ $workspaceService

WorkspaceService TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer::$workspaceService
protected

Definition at line 54 of file RemoteServer.php.