Documentation TYPO3 par Ameos |
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::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 t3lib_BEfunc::deleteClause().
Referenced by getCmdArrayForPublishWS().
wslib::CLI_main | ( | ) |
Main function to call from cli-script
Definition at line 183 of file class.wslib.php.
References autoPublishWorkspaces().
wslib::autoPublishWorkspaces | ( | ) |
CLI internal function: Will search for workspaces which has timed out regarding publishing and publish them
Definition at line 193 of file class.wslib.php.
References t3lib_BEfunc::deleteClause(), getCmdArrayForPublishWS(), and t3lib_div::makeInstance().
Referenced by CLI_main().