TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler:
Tx_Workspaces_ExtDirect_AbstractHandler TYPO3\CMS\Workspaces\ExtDirect\ActionHandler TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer TYPO3\CMS\Workspaces\ExtDirect\MassActionHandler Tx_Workspaces_ExtDirect_ActionHandler Tx_Workspaces_ExtDirect_Server Tx_Workspaces_ExtDirect_MassActionHandler

Protected Member Functions

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Abstract ExtDirect handler

Author
Workspaces Team (http://forge.typo3.org/projects/show/typo3v4-workspaces)

Definition at line 21 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 85 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
integer$errorCodeThe error code to be used
boolean$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
integer|NULL

Definition at line 68 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().