TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
ElementEntityProcessor Class Reference

Public Member Functions

 setWorkspace ($workspace)
 
 getWorkspace ()
 
 getDataHandler ()
 
 createNewDependentElementChildReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 
 createNewDependentElementParentReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 
 createClearDependentElementChildReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 
 createClearDependentElementParentReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 
 createNewDependentElementCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 

Protected Attributes

 $workspace
 
 $dataHandler
 

Detailed Description

Processor having generic callback methods for element entities

Definition at line 24 of file ElementEntityProcessor.php.

Member Function Documentation

createClearDependentElementChildReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
  $eventName 
)

Callback to determine whether a new child reference shall be considered in the dependency resolver utility. Only elements that are a delete placeholder are considered.

Parameters
array$callerArguments
array$targetArgument
ElementEntity$caller
string$eventName
Returns
NULL|string Skip response (if required)

Definition at line 130 of file ElementEntityProcessor.php.

References $response, Enumeration\cast(), ElementEntityProcessor\createNewDependentElementChildReferenceCallback(), VersionState\DELETE_PLACEHOLDER, BackendUtility\getRecord(), and ElementEntity\RESPONSE_Skip.

createClearDependentElementParentReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
  $eventName 
)

Callback to determine whether a new parent reference shall be considered in the dependency resolver utility. Only elements that are a delete placeholder are considered.

Parameters
array$callerArguments
array$targetArgument
ElementEntity$caller
string$eventName
Returns
NULL|string Skip response (if required)

Definition at line 152 of file ElementEntityProcessor.php.

References $response, Enumeration\cast(), ElementEntityProcessor\createNewDependentElementParentReferenceCallback(), VersionState\DELETE_PLACEHOLDER, BackendUtility\getRecord(), and ElementEntity\RESPONSE_Skip.

createNewDependentElementCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
  $eventName 
)

Callback to add additional data to new elements created in the dependency resolver utility.

Exceptions
\RuntimeException
Parameters
ElementEntity$caller
array$callerArguments
array$targetArgument
string$eventName
Returns
void

Definition at line 174 of file ElementEntityProcessor.php.

References elseif, ElementEntity\getId(), ElementEntity\getRecord(), ElementEntity\getTable(), ElementEntityProcessor\getWorkspace(), BackendUtility\getWorkspaceVersionOfRecord(), ElementEntity\hasDataValue(), BackendUtility\isTableWorkspaceEnabled(), ElementEntity\setDataValue(), ElementEntity\setId(), and ElementEntity\setInvalid().

createNewDependentElementChildReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
  $eventName 
)

Callback to determine whether a new child reference shall be considered in the dependency resolver utility.

Parameters
array$callerArguments
array$targetArgument
ElementEntity$caller
string$eventName
Returns
NULL|string Skip response (if required)

Definition at line 93 of file ElementEntityProcessor.php.

References ElementEntityProcessor\getDataHandler(), ElementEntity\getTable(), BackendUtility\getTcaFieldConfiguration(), GeneralUtility\inList(), and ElementEntity\RESPONSE_Skip.

Referenced by ElementEntityProcessor\createClearDependentElementChildReferenceCallback().

createNewDependentElementParentReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
  $eventName 
)

Callback to determine whether a new parent reference shall be considered in the dependency resolver utility.

Parameters
array$callerArguments
array$targetArgument
\TYPO3\CMS\Version\Dependency\ElementEntity$caller
string$eventName
Returns
NULL|string Skip response (if required)

Definition at line 111 of file ElementEntityProcessor.php.

References ElementEntityProcessor\getDataHandler(), BackendUtility\getTcaFieldConfiguration(), GeneralUtility\inList(), and ElementEntity\RESPONSE_Skip.

Referenced by ElementEntityProcessor\createClearDependentElementParentReferenceCallback().

getDataHandler ( )
getWorkspace ( )

Gets the current workspace.

Returns
int

Definition at line 51 of file ElementEntityProcessor.php.

References ElementEntityProcessor\$workspace.

Referenced by ElementEntityProcessor\createNewDependentElementCallback().

setWorkspace (   $workspace)

Sets the current workspace.

Parameters
int$workspace

Definition at line 41 of file ElementEntityProcessor.php.

References ElementEntityProcessor\$workspace.

Member Data Documentation

$dataHandler
protected

Definition at line 34 of file ElementEntityProcessor.php.

Referenced by ElementEntityProcessor\getDataHandler().

$workspace
protected