API docs     >     Files     >     File

File->publishVersion

Reimplemented by

Cblock, Mailing, Page

Description

publishVersion ( $version )
Sets the specified version of the Object instance to "published"

Parameters

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

Returns

int|false
Version or FALSE if permission-check for RREAD fails