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

Public Member Functions

 __construct ()
 
array getMassStageActions ()
 
array publishWorkspace (\stdClass $parameters)
 
array flushWorkspace (\stdClass $parameters)
 

Public Attributes

const MAX_RECORDS_TO_PROCESS = 30
 

Protected Member Functions

int initPublishData ($workspace, $swap, $language=null)
 
int initFlushData ($workspace, $language=null)
 
int processData ()
 
int null validateLanguageParameter (\stdClass $parameters)
 
int getCurrentWorkspace ()
 
BackendUserAuthentication getBackendUser ()
 
LanguageService getLanguageService ()
 

Protected Attributes

WorkspaceService $workspaceService
 

Private Attributes

string $pathToLocallang = 'LLL:EXT:workspaces/Resources/Private/Language/locallang.xlf'
 

Detailed Description

Class encapsulates all actions which are triggered for all elements within the current workspace.

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

Definition at line 28 of file MassActionHandler.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 42 of file MassActionHandler.php.

Member Function Documentation

◆ flushWorkspace()

◆ getBackendUser()

◆ getCurrentWorkspace()

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

◆ getLanguageService()

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

Definition at line 268 of file MassActionHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler\getMassStageActions().

◆ getMassStageActions()

◆ initFlushData()

int TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler::initFlushData (   $workspace,
  $language = null 
)
protected

Initializes the command map to be used for flushing.

Parameters
int$workspace
int$language
Returns
‪int

Definition at line 166 of file MassActionHandler.php.

References TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler\getBackendUser(), and TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\setAndSaveSessionData().

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler\flushWorkspace().

◆ initPublishData()

int TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler::initPublishData (   $workspace,
  $swap,
  $language = null 
)
protected

Initializes the command map to be used for publishing.

Parameters
int$workspace
bool$swap
int$language
Returns
‪int

Definition at line 143 of file MassActionHandler.php.

References TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler\getBackendUser(), and TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\setAndSaveSessionData().

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler\publishWorkspace().

◆ processData()

◆ publishWorkspace()

◆ validateLanguageParameter()

int null TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler::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 238 of file MassActionHandler.php.

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

Referenced by TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler\flushWorkspace(), and TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler\publishWorkspace().

Member Data Documentation

◆ $pathToLocallang

string TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler::$pathToLocallang = 'LLL:EXT:workspaces/Resources/Private/Language/locallang.xlf'
private

Path to the locallang file

Definition at line 36 of file MassActionHandler.php.

◆ $workspaceService

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

Definition at line 40 of file MassActionHandler.php.

◆ MAX_RECORDS_TO_PROCESS

const TYPO3\CMS\Workspaces\Controller\Remote\MassActionHandler::MAX_RECORDS_TO_PROCESS = 30

Definition at line 30 of file MassActionHandler.php.