API docs     >     Content Blocks     >     Cblock

Cblock->getLinkedMailingVersions

Description

getLinkedMailingVersions ( $published = false, $latestversion = false )
Gets all Mailing versions linked to this Cblock

Parameters

$published
bool
(optional) Gets only the published versions
$latestversion
bool
(optional) Gets the latest approved version

Returns

array|false
Array of Mailing versions or FALSE in case of an error
  1. array(
  2.     [0] => array(
  3.         ['ID'] => 41
  4.         ['PID'] => 41
  5.         ['PVERSION'] => 6
  6.         ['CBVERSION'] => 999999
  7.         ['HASCHANGED'] => 1
  8.         ['OID'] => 131
  9.         ['NAME'] => 'Mailing 1'
  10.         ['TITLE'] => NULL
  11.         ['DESCRIPTION'] => NULL
  12.         ['FROM_EMAIL'] => 'info@example.com'
  13.         ['FROM_NAME'] => 'Testsender'
  14.         ['SUBJECT'] => 'TestSubject'
  15.         ['FALLBACK_TEXT'] => 'safsdafs'
  16.     )
  17.     ...
  18. )