TYPO3
7.6
|
Public Member Functions | |
processCmdmap_postProcess ($command, $table, $id, $value,\TYPO3\CMS\Core\DataHandling\DataHandler $tcemain) | |
processCmdmap_afterFinish (\TYPO3\CMS\Core\DataHandling\DataHandler $tcemainObj) | |
Protected Member Functions | |
resetStageOfElements ($stageId) | |
flushWorkspaceElements ($workspaceId) | |
getTcaTables () | |
getTceMain () | |
flushWorkspaceCacheEntriesByWorkspaceId ($workspaceId) | |
Tcemain service
Definition at line 22 of file workspaces/Classes/Hook/DataHandlerHook.php.
|
protected |
Flushes the workspace cache for current workspace and for the virtual "all workspaces" too.
int | $workspaceId | The workspace to be flushed in cache |
Definition at line 135 of file workspaces/Classes/Hook/DataHandlerHook.php.
Referenced by DataHandlerHook\processCmdmap_afterFinish().
|
protected |
Flushes elements of a particular workspace to avoid orphan records.
int | $workspaceId | The workspace to be flushed |
Definition at line 86 of file workspaces/Classes/Hook/DataHandlerHook.php.
References $GLOBALS, BackendUtility\deleteClause(), DataHandlerHook\getTcaTables(), DataHandlerHook\getTceMain(), BackendUtility\getWorkspaceWhereClause(), and BackendUtility\isTableWorkspaceEnabled().
Referenced by DataHandlerHook\processCmdmap_postProcess().
|
protected |
Gets all defined TCA tables.
Definition at line 114 of file workspaces/Classes/Hook/DataHandlerHook.php.
References $GLOBALS.
Referenced by DataHandlerHook\flushWorkspaceElements(), and DataHandlerHook\resetStageOfElements().
|
protected |
Definition at line 122 of file workspaces/Classes/Hook/DataHandlerHook.php.
Referenced by DataHandlerHook\flushWorkspaceElements().
processCmdmap_afterFinish | ( | \TYPO3\CMS\Core\DataHandling\DataHandler | $tcemainObj | ) |
hook that is called AFTER all commands of the commandmap was executed
\TYPO3\CMS\Core\DataHandling\DataHandler | $tcemainObj | reference to the main tcemain object |
Definition at line 54 of file workspaces/Classes/Hook/DataHandlerHook.php.
References DataHandlerHook\flushWorkspaceCacheEntriesByWorkspaceId().
processCmdmap_postProcess | ( | $command, | |
$table, | |||
$id, | |||
$value, | |||
\TYPO3\CMS\Core\DataHandling\DataHandler | $tcemain | ||
) |
In case a sys_workspace_stage record is deleted we do a hard reset for all existing records in that stage to avoid that any of these end up as orphan records.
string | $command | |
string | $table | |
string | $id | |
string | $value | |
\TYPO3\CMS\Core\DataHandling\DataHandler | $tcemain |
Definition at line 36 of file workspaces/Classes/Hook/DataHandlerHook.php.
References elseif, DataHandlerHook\flushWorkspaceElements(), and DataHandlerHook\resetStageOfElements().
|
protected |
In case a sys_workspace_stage record is deleted we do a hard reset for all existing records in that stage to avoid that any of these end up as orphan records.
int | $stageId | Elements with this stage are resetted |
Definition at line 67 of file workspaces/Classes/Hook/DataHandlerHook.php.
References $GLOBALS, BackendUtility\deleteClause(), DataHandlerHook\getTcaTables(), and BackendUtility\isTableWorkspaceEnabled().
Referenced by DataHandlerHook\processCmdmap_postProcess().