API docs     >     Pages and Sites     >     Page

Page->publishVersion

Description

publishVersion ( $version = 0 )

Reimplemented from

Versionable
Sets the state of a specific version of this Page 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 Page or FALSE in case of an error