TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler:
TYPO3\CMS\Workspaces\ExtDirect\ActionHandler TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer TYPO3\CMS\Workspaces\ExtDirect\MassActionHandler

Protected Member Functions

 getCurrentWorkspace ()
 
 getErrorResponse ($errorLabel, $errorCode=0, $successFlagValue=false)
 
 getWorkspaceService ()
 
 validateLanguageParameter (\stdClass $parameters)
 
 getAffectedElements (\stdClass $parameters)
 

Detailed Description

Abstract ExtDirect handler

Definition at line 20 of file AbstractHandler.php.

Member Function Documentation

◆ getAffectedElements()

TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler::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 88 of file AbstractHandler.php.

References TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord\create(), TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler\getCurrentWorkspace(), TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler\getWorkspaceService(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler\validateLanguageParameter().

Referenced by TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer\checkIntegrity().

◆ getCurrentWorkspace()

◆ getErrorResponse()

TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler::getErrorResponse (   $errorLabel,
  $errorCode = 0,
  $successFlagValue = false 
)
protected

Gets an error response to be shown in the grid component.

Parameters
string$errorLabelName of the label in the locallang.xlf file
int$errorCodeThe error code to be used
bool$successFlagValueValue of the success flag to be delivered back (might be FALSE in most cases)
Returns
array

Definition at line 40 of file AbstractHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\sendToNextStageWindow(), and TYPO3\CMS\Workspaces\ExtDirect\ActionHandler\sendToPrevStageWindow().

◆ getWorkspaceService()

◆ validateLanguageParameter()

TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler::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 70 of file AbstractHandler.php.

Referenced by TYPO3\CMS\Workspaces\ExtDirect\MassActionHandler\flushWorkspace(), TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler\getAffectedElements(), and TYPO3\CMS\Workspaces\ExtDirect\MassActionHandler\publishWorkspace().