|
TYPO3 API
SVNRelease
|
Public Member Functions | |
| getCmdArrayForPublishWS ($wsid, $doSwap, $pageId=0) | |
| selectVersionsInWorkspace ($wsid, $filter=0, $stage=-99, $pageId=-1) | |
| CLI_main () | |
| autoPublishWorkspaces () | |
Definition at line 68 of file class.wslib.php.
| wslib::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 200 of file class.wslib.php.
References $GLOBALS, $TYPO3_CONF_VARS, t3lib_BEfunc\deleteClause(), getCmdArrayForPublishWS(), and t3lib_div\makeInstance().
Referenced by CLI_main().
| wslib::CLI_main | ( | ) |
Main function to call from cli-script
Definition at line 187 of file class.wslib.php.
References autoPublishWorkspaces(), and t3lib_div\logDeprecatedFunction().
| wslib::getCmdArrayForPublishWS | ( | $ | wsid, |
| $ | doSwap, | ||
| $ | pageId = 0 |
||
| ) |
Building tcemain CMD-array for swapping all versions in a workspace.
| integer | Real workspace ID, cannot be ONLINE (zero). |
| boolean | If set, then the currently online versions are swapped into the workspace in exchange for the offline versions. Otherwise the workspace is emptied. |
| [type] | $pageId: ... |
Definition at line 81 of file class.wslib.php.
References t3lib_BEfunc\getRecord(), and selectVersionsInWorkspace().
Referenced by autoPublishWorkspaces().
| wslib::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
| integer | 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 |
| integer | Lifecycle filter: 1 = select all drafts (never-published), 2 = select all published one or more times (archive/multiple), anything else selects all. |
| integer | Stage filter: -99 means no filtering, otherwise it will be used to select only elements with that stage. For publishing, that would be "10" |
| integer | Page id: Live page for which to find versions in workspace! |
Definition at line 127 of file class.wslib.php.
References $GLOBALS, $TCA, and t3lib_BEfunc\deleteClause().
Referenced by getCmdArrayForPublishWS().
1.7.5.1