API docs     >     Pages and Sites     >     Page

Page->getPublishedVersion

Description

getPublishedVersion ( bool = false )
Gets the currently published version of the Object instance

Parameters

bool
(optional) TRUE if always the specific published version should be returned FALSE if 999999 (ALWAYS_LATEST_APPROVED_VERSION) should be returned in case the Object is automatically published on approval

Returns

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