TYPO3
7.6
|
Public Member Functions | |
getCmdArrayForPublishWS ($wsid, $doSwap, $pageId=0) | |
selectVersionsInWorkspace ($wsid, $filter=0, $stage=-99, $pageId=-1) | |
autoPublishWorkspaces () | |
Library with Workspace related functionality
Definition at line 22 of file WorkspacesUtility.php.
autoPublishWorkspaces | ( | ) |
This method is called by the Scheduler task that triggers the autopublication process It searches for workspaces whose publication date is in the past and publishes them
Definition at line 106 of file WorkspacesUtility.php.
References $GLOBALS, BackendUtility\deleteClause(), and WorkspacesUtility\getCmdArrayForPublishWS().
getCmdArrayForPublishWS | ( | $wsid, | |
$doSwap, | |||
$pageId = 0 |
|||
) |
Building tcemain CMD-array for swapping all versions in a workspace.
int | $wsid | Real workspace ID, cannot be ONLINE (zero). |
bool | $doSwap | If set, then the currently online versions are swapped into the workspace in exchange for the offline versions. Otherwise the workspace is emptied. |
int | $pageId |
Definition at line 32 of file WorkspacesUtility.php.
References BackendUtility\getRecord(), and WorkspacesUtility\selectVersionsInWorkspace().
Referenced by WorkspacesUtility\autoPublishWorkspaces().
selectVersionsInWorkspace | ( | $wsid, | |
$filter = 0 , |
|||
$stage = -99 , |
|||
$pageId = -1 |
|||
) |
Select all records from workspace pending for publishing Used from backend to display workspace overview User for auto-publishing for selecting versions for publication
int | $wsid | Workspace ID. If -99, will select ALL versions from ANY workspace. If -98 will select all but ONLINE. >=-1 will select from the actual workspace |
int | $filter | Lifecycle filter: 1 = select all drafts (never-published), 2 = select all published one or more times (archive/multiple), anything else selects all. |
int | $stage | Stage filter: -99 means no filtering, otherwise it will be used to select only elements with that stage. For publishing, that would be "10 |
int | $pageId | Page id: Live page for which to find versions in workspace! |
Definition at line 73 of file WorkspacesUtility.php.
References $GLOBALS, and BackendUtility\deleteClause().
Referenced by WorkspacesUtility\getCmdArrayForPublishWS().