TYPO3 API  SVNRelease
Public Member Functions
wslib Class Reference

List of all members.

Public Member Functions

 getCmdArrayForPublishWS ($wsid, $doSwap, $pageId=0)
 selectVersionsInWorkspace ($wsid, $filter=0, $stage=-99, $pageId=-1)
 CLI_main ()
 autoPublishWorkspaces ()

Detailed Description

Definition at line 68 of file class.wslib.php.


Member Function Documentation

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

Returns:
void

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

Returns:
void
Deprecated:
since TYPO3 4.5, will be removed in TYPO3 4.7 - This was meant for an obsolete CLI script. You shouldn't be calling this.

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.

Parameters:
integerReal workspace ID, cannot be ONLINE (zero).
booleanIf set, then the currently online versions are swapped into the workspace in exchange for the offline versions. Otherwise the workspace is emptied.
[type]$pageId: ...
Returns:
array Command array for tcemain

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

Parameters:
integerWorkspace ID. If -99, will select ALL versions from ANY workspace. If -98 will select all but ONLINE. >=-1 will select from the actual workspace
integerLifecycle filter: 1 = select all drafts (never-published), 2 = select all published one or more times (archive/multiple), anything else selects all.
integerStage filter: -99 means no filtering, otherwise it will be used to select only elements with that stage. For publishing, that would be "10"
integerPage id: Live page for which to find versions in workspace!
Returns:
array Array of all records uids etc. First key is table name, second key incremental integer. Records are associative arrays with uid, t3ver_oid and t3ver_swapmode fields. The REAL pid of the online record is found as "realpid"

Definition at line 127 of file class.wslib.php.

References $GLOBALS, $TCA, and t3lib_BEfunc\deleteClause().

Referenced by getCmdArrayForPublishWS().


The documentation for this class was generated from the following file: