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

Public Member Functions

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

Public Attributes

const MAX_RECORDS_TO_PROCESS = 30
 

Protected Member Functions

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

Protected Attributes

WorkspaceService $workspaceService
 

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 29 of file MassActionHandler.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 37 of file MassActionHandler.php.

Member Function Documentation

◆ flushWorkspace()

◆ getBackendUser()

◆ getCurrentWorkspace()

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

Gets the current workspace ID.

Returns
‪int The current workspace ID

Definition at line 215 of file MassActionHandler.php.

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

◆ getLanguageService()

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

Definition at line 231 of file MassActionHandler.php.

References $GLOBALS.

◆ 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 129 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,
  $language = null 
)
protected

Initializes the command map to be used for publishing.

Parameters
int$workspace
int$language
Returns
‪int

Definition at line 106 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 201 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

◆ $workspaceService

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

Definition at line 35 of file MassActionHandler.php.

◆ MAX_RECORDS_TO_PROCESS

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

Definition at line 31 of file MassActionHandler.php.