API docs     >     Content Blocks     >     Cblock

Cblock->getLinkedPageVersions

Description

getLinkedPageVersions ( $site, $published = false, $latestversion = false )
Gets all Page versions linked to this Cblock

Parameters

$site
int
Site Id
$published
bool
(optional) Gets only the published versions
$latestversion
bool
(optional) Gets the latest approved version

Returns

array|false
Array of Page versions or FALSE in case of an error
  1. array(
  2.     [0] => array(
  3.         ['ID'] => 63
  4.         ['PID'] => 63
  5.         ['PVERSION'] => 2
  6.         ['CBVERSION'] => 999999
  7.         ['HASCHANGED'] => 1
  8.         ['OID'] => 209
  9.         ['NAME'] => 'ie 8'
  10.         ['TITLE'] => NULL
  11.         ['DESCRIPTION'] => NULL
  12.         [09] => NULL
  13.         ['RICHTEXT_TEST'] => NULL
  14.         ['OTHER_PAGE'] => NULL
  15.     )
  16.     ...
  17. )