API docs     >     Content Blocks     >     Cblock

Cblock->publishVersion

Description

publishVersion ( $version = 0 )

Reimplemented from

Versionable
Sets the state of a specific version of this Cblock to "published"

Parameters

$version
int
(optional) Specific version or ALWAYS_LATEST_APPROVED_VERSION (constant) to always publish the lastest approved version

Returns

int|false
New version of the Cblock or FALSE in case of an error