TYPO3  7.6
Protected Member Functions | List of all members
AbstractHandler Class Reference
Inheritance diagram for AbstractHandler:
ActionHandler ExtDirectServer 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 ( \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 elseif, AbstractHandler\getCurrentWorkspace(), AbstractHandler\getWorkspaceService(), and AbstractHandler\validateLanguageParameter().

Referenced by ExtDirectServer\checkIntegrity().

getCurrentWorkspace ( )
protected
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, and $response.

Referenced by ActionHandler\sendToNextStageWindow(), and ActionHandler\sendToPrevStageWindow().

getWorkspaceService ( )
protected
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 MassActionHandler\flushWorkspace(), AbstractHandler\getAffectedElements(), and MassActionHandler\publishWorkspace().