TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
MassActionHandler Class Reference
Inheritance diagram for MassActionHandler:
AbstractHandler

Public Member Functions

 getMassStageActions ($parameter)
 
 publishWorkspace (\stdclass $parameters)
 
 flushWorkspace (\stdclass $parameters)
 

Public Attributes

const MAX_RECORDS_TO_PROCESS = 30
 

Protected Member Functions

 initPublishData ($workspace, $swap, $language=null)
 
 initFlushData ($workspace, $language=null)
 
- Protected Member Functions inherited from AbstractHandler
 getCurrentWorkspace ()
 
 getErrorResponse ($errorLabel, $errorCode=0, $successFlagValue=false)
 
 getWorkspaceService ()
 
 validateLanguageParameter (\stdClass $parameters)
 
 getAffectedElements (\stdClass $parameters)
 

Private Attributes

 $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.

Definition at line 20 of file MassActionHandler.php.

Member Function Documentation

flushWorkspace ( \stdclass  $parameters)

Flushes the current workspace.

Parameters
stdclass$parameters
Returns
array

Definition at line 97 of file MassActionHandler.php.

References $GLOBALS, AbstractHandler\getCurrentWorkspace(), MassActionHandler\initFlushData(), and AbstractHandler\validateLanguageParameter().

getMassStageActions (   $parameter)

Get list of available mass workspace actions.

Parameters
\stdClass$parameter
Returns
array $data

Definition at line 37 of file MassActionHandler.php.

References $GLOBALS, AbstractHandler\getCurrentWorkspace(), WorkspaceService\LIVE_WORKSPACE_ID, and WorkspaceService\SELECT_ALL_WORKSPACES.

initFlushData (   $workspace,
  $language = null 
)
protected

Initializes the command map to be used for flushing.

Parameters
int$workspace
int$language
Returns
int

Definition at line 151 of file MassActionHandler.php.

References $GLOBALS, and AbstractHandler\getWorkspaceService().

Referenced by MassActionHandler\flushWorkspace().

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

References $GLOBALS, and AbstractHandler\getWorkspaceService().

Referenced by MassActionHandler\publishWorkspace().

publishWorkspace ( \stdclass  $parameters)

Publishes the current workspace.

Parameters
stdclass$parameters
Returns
array

Definition at line 68 of file MassActionHandler.php.

References $GLOBALS, AbstractHandler\getCurrentWorkspace(), MassActionHandler\initPublishData(), and AbstractHandler\validateLanguageParameter().

Member Data Documentation

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

Definition at line 29 of file MassActionHandler.php.

const MAX_RECORDS_TO_PROCESS = 30

Definition at line 22 of file MassActionHandler.php.