API docs     >     Mailings     >     Mailing

Mailing->publishVersion

Description

publishVersion ( $version = 0 )

Reimplemented from

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