TYPO3
7.6
|
Public Member Functions | |
__construct () | |
generateWorkspacePreviewLink ($uid) | |
generateWorkspacePreviewLinksForAllLanguages ($uid) | |
swapSingleRecord ($table, $t3ver_oid, $orig_uid) | |
deleteSingleRecord ($table, $uid) | |
viewSingleRecord ($table, $uid) | |
executeSelectionAction ($parameter) | |
saveColumnModel ($model) | |
loadColumnModel () | |
saveLanguageSelection ($language) | |
sendToNextStageWindow ($uid, $table, $t3ver_oid) | |
sendToPrevStageWindow ($uid, $table) | |
sendToSpecificStageWindow ($nextStageId, array $elements) | |
getRecipientList (array $uidOfRecipients, $additionalRecipients, $stageId) | |
sentCollectionToStage (\stdClass $parameters) | |
sendToNextStageExecute (\stdClass $parameters) | |
sendToPrevStageExecute (\stdClass $parameters) | |
sendToSpecificStageExecute (\stdClass $parameters) | |
sendPageToPreviousStage ($id) | |
sendPageToNextStage ($id) | |
updateStageChangeButtons ($id) | |
Protected Member Functions | |
getPublishSwapCommands (array $selection, $swapIntoWorkspace) | |
getFlushCommands (array $selection) | |
getSentToStageWindow ($nextStage) | |
getReceipientsOfStage ($stageRecord) | |
getDefaultCommentOfStage ($stage) | |
getStageService () | |
setTemporaryWorkspace ($workspaceId) | |
getBackendUser () | |
Protected Member Functions inherited from AbstractHandler | |
getCurrentWorkspace () | |
getErrorResponse ($errorLabel, $errorCode=0, $successFlagValue=false) | |
getWorkspaceService () | |
validateLanguageParameter (\stdClass $parameters) | |
getAffectedElements (\stdClass $parameters) | |
Protected Attributes | |
$stageService | |
ExtDirect action handler
Definition at line 26 of file ActionHandler.php.
__construct | ( | ) |
Creates this object.
Definition at line 36 of file ActionHandler.php.
References GeneralUtility\makeInstance().
deleteSingleRecord | ( | $table, | |
$uid | |||
) |
Deletes a single record.
string | $table | |
int | $uid |
Definition at line 95 of file ActionHandler.php.
References BackendUtility\getRecord(), and ActionHandler\setTemporaryWorkspace().
executeSelectionAction | ( | $parameter | ) |
Executes an action (publish, discard, swap) to a selection set.
\stdClass | $parameter |
Definition at line 126 of file ActionHandler.php.
References elseif, ActionHandler\getFlushCommands(), and ActionHandler\getPublishSwapCommands().
generateWorkspacePreviewLink | ( | $uid | ) |
Generates a workspace preview link.
int | $uid | The ID of the record to be linked |
Definition at line 47 of file ActionHandler.php.
References AbstractHandler\getWorkspaceService().
generateWorkspacePreviewLinksForAllLanguages | ( | $uid | ) |
Generates workspace preview links for all available languages of a page.
int | $uid |
Definition at line 58 of file ActionHandler.php.
References AbstractHandler\getWorkspaceService().
|
protected |
Definition at line 859 of file ActionHandler.php.
References $GLOBALS.
Referenced by ActionHandler\setTemporaryWorkspace().
|
protected |
Gets the default comment of a particular stage.
int | $stage |
Definition at line 744 of file ActionHandler.php.
References ActionHandler\getStageService().
|
protected |
Get flush commands
array|\stdClass[] | $selection |
Definition at line 174 of file ActionHandler.php.
Referenced by ActionHandler\executeSelectionAction().
|
protected |
Get publish swap commands
array|\stdClass[] | $selection | |
bool | $swapIntoWorkspace |
Definition at line 155 of file ActionHandler.php.
Referenced by ActionHandler\executeSelectionAction().
|
protected |
Gets all assigned recipients of a particular stage.
StageRecord | int | $stageRecord |
Definition at line 707 of file ActionHandler.php.
References WorkspaceRecord\get(), AbstractHandler\getCurrentWorkspace(), ActionHandler\getStageService(), and GeneralUtility\validEmail().
Referenced by ActionHandler\getSentToStageWindow().
getRecipientList | ( | array | $uidOfRecipients, |
$additionalRecipients, | |||
$stageId | |||
) |
Gets a merged variant of recipient defined by uid and custom ones.
array | $uidOfRecipients | list of recipients |
string | $additionalRecipients | given user string of additional recipients |
int | $stageId | stage id |
\InvalidArgumentException |
Definition at line 337 of file ActionHandler.php.
References $GLOBALS, WorkspaceRecord\get(), AbstractHandler\getCurrentWorkspace(), BackendUtility\getRecord(), ActionHandler\getStageService(), GeneralUtility\trimExplode(), and GeneralUtility\validEmail().
Referenced by ActionHandler\sendToNextStageExecute(), ActionHandler\sendToPrevStageExecute(), ActionHandler\sendToSpecificStageExecute(), and ActionHandler\sentCollectionToStage().
|
protected |
Gets the dialog window to be displayed before a record can be sent to a stage.
StageRecord | int | $nextStageId |
Definition at line 654 of file ActionHandler.php.
References $GLOBALS, WorkspaceRecord\get(), AbstractHandler\getCurrentWorkspace(), and ActionHandler\getReceipientsOfStage().
Referenced by ActionHandler\sendPageToNextStage(), ActionHandler\sendPageToPreviousStage(), ActionHandler\sendToNextStageWindow(), ActionHandler\sendToPrevStageWindow(), and ActionHandler\sendToSpecificStageWindow().
|
protected |
Gets an instance of the Stage service.
Definition at line 755 of file ActionHandler.php.
References ActionHandler\$stageService, and GeneralUtility\makeInstance().
Referenced by ActionHandler\getDefaultCommentOfStage(), ActionHandler\getReceipientsOfStage(), ActionHandler\getRecipientList(), ActionHandler\sendPageToNextStage(), and ActionHandler\sendPageToPreviousStage().
loadColumnModel | ( | ) |
Definition at line 204 of file ActionHandler.php.
References $GLOBALS.
saveColumnModel | ( | $model | ) |
Saves the selected columns to be shown to the preferences of the current backend user.
\stdClass | $model |
Definition at line 191 of file ActionHandler.php.
References $GLOBALS.
saveLanguageSelection | ( | $language | ) |
Saves the selected language.
int | string | $language |
Definition at line 219 of file ActionHandler.php.
References $GLOBALS.
sendPageToNextStage | ( | $id | ) |
int | $id | Current Page id to select Workspace items from. |
Definition at line 788 of file ActionHandler.php.
References ActionHandler\getSentToStageWindow(), ActionHandler\getStageService(), and GeneralUtility\makeInstance().
sendPageToPreviousStage | ( | $id | ) |
Send all available workspace records to the previous stage.
int | $id | Current page id to process items to previous stage. |
Definition at line 769 of file ActionHandler.php.
References ActionHandler\getSentToStageWindow(), ActionHandler\getStageService(), and GeneralUtility\makeInstance().
sendToNextStageExecute | ( | \stdClass | $parameters | ) |
Gets an object with this structure:
affects: object table t3ver_oid nextStage uid receipients: array with uids additional: string comments: string
stdClass | $parameters |
Definition at line 522 of file ActionHandler.php.
References ActionHandler\getRecipientList(), BackendUtility\getRecord(), ActionHandler\setTemporaryWorkspace(), and StagesService\STAGE_PUBLISH_EXECUTE_ID.
sendToNextStageWindow | ( | $uid, | |
$table, | |||
$t3ver_oid | |||
) |
Gets the dialog window to be displayed before a record can be sent to the next stage.
int | $uid | |
string | $table | |
int | $t3ver_oid |
Definition at line 236 of file ActionHandler.php.
References WorkspaceRecord\get(), AbstractHandler\getErrorResponse(), BackendUtility\getRecord(), ActionHandler\getSentToStageWindow(), and ActionHandler\setTemporaryWorkspace().
sendToPrevStageExecute | ( | \stdClass | $parameters | ) |
Gets an object with this structure:
affects: object table t3ver_oid nextStage receipients: array with uids additional: string comments: string
stdClass | $parameters |
Definition at line 569 of file ActionHandler.php.
References ActionHandler\getRecipientList(), BackendUtility\getRecord(), and ActionHandler\setTemporaryWorkspace().
sendToPrevStageWindow | ( | $uid, | |
$table | |||
) |
Gets the dialog window to be displayed before a record can be sent to the previous stage.
int | $uid | |
string | $table |
Definition at line 271 of file ActionHandler.php.
References WorkspaceRecord\get(), AbstractHandler\getErrorResponse(), BackendUtility\getRecord(), ActionHandler\getSentToStageWindow(), and ActionHandler\setTemporaryWorkspace().
sendToSpecificStageExecute | ( | \stdClass | $parameters | ) |
Gets an object with this structure:
affects: object elements: array 0: object table t3ver_oid uid 1: object table t3ver_oid uid nextStage recipients: array with uids additional: string comments: string
\stdClass | $parameters |
Definition at line 615 of file ActionHandler.php.
References ActionHandler\getRecipientList(), BackendUtility\getRecord(), and StagesService\STAGE_PUBLISH_EXECUTE_ID.
sendToSpecificStageWindow | ( | $nextStageId, | |
array | $elements | ||
) |
Gets the dialog window to be displayed before a record can be sent to a specific stage.
int | $nextStageId | |
array|\stdClass[] | $elements |
Definition at line 312 of file ActionHandler.php.
References ActionHandler\getSentToStageWindow().
sentCollectionToStage | ( | \stdClass | $parameters | ) |
Push the given element collection to the next workspace stage.
$parameters->additional = your@ $parameters->affects->__TABLENAME__ $parameters->comments $parameters->receipients $parameters->stageId mail .com
stdClass | $parameters |
Definition at line 443 of file ActionHandler.php.
References ActionHandler\getRecipientList(), and StagesService\STAGE_PUBLISH_EXECUTE_ID.
|
protected |
int | $workspaceId |
\TYPO3\CMS\Core\Exception |
Definition at line 839 of file ActionHandler.php.
References ActionHandler\getBackendUser().
Referenced by ActionHandler\deleteSingleRecord(), ActionHandler\sendToNextStageExecute(), ActionHandler\sendToNextStageWindow(), ActionHandler\sendToPrevStageExecute(), ActionHandler\sendToPrevStageWindow(), and ActionHandler\swapSingleRecord().
swapSingleRecord | ( | $table, | |
$t3ver_oid, | |||
$orig_uid | |||
) |
Swaps a single record.
string | $table | |
int | $t3ver_oid | |
int | $orig_uid |
Definition at line 72 of file ActionHandler.php.
References BackendUtility\getRecord(), and ActionHandler\setTemporaryWorkspace().
updateStageChangeButtons | ( | $id | ) |
Fetch the current label and visible state of the buttons.
int | $id |
Definition at line 809 of file ActionHandler.php.
References $GLOBALS, ActionHandler\$stageService, and GeneralUtility\makeInstance().
viewSingleRecord | ( | $table, | |
$uid | |||
) |
Generates a view link for a page.
string | $table | |
string | $uid |
Definition at line 115 of file ActionHandler.php.
|
protected |
Definition at line 31 of file ActionHandler.php.
Referenced by ActionHandler\getStageService(), and ActionHandler\updateStageChangeButtons().