API docs     >     Content Blocks     >     CblockMgr

CblockMgr->getParents

Description

getParents ( $cbId )
Gets the parents of the specified Cblock

Parameters

$cbId
int
Cblock Id

Returns

array
Array of parent Cblocks
  1. Array(                                      array Array of n Contentblocks
  2.     [0] => Array(
  3.         [0] => Array(
  4.             [LFT] => 1                      int Id of the left node in the nested set tree structure
  5.             [RGT] => 458                    int Id of the right node in the nested set tree structure
  6.             [VERSIONPUBLISHED] => 999999    int Published version (either a specific version or 999999 if set to 'ALWAYS_LATEST_APPROVED_VERSION')
  7.             [ID] => 1                       int Id
  8.             [LEVEL] => 1                    int Level in tree
  9.             [PARENT] => 0                   int Parent Id
  10.             [FOLDER] => 1                   int 1 if folder, 0 if not
  11.             [VERSION] => 1                  int Version
  12.             [LOCKED] => 0                   int 1 if locked by an User, 0 if not
  13.             [OID] => 1                      int Id
  14.             [NAME] => 'Contentblocks'       string Name
  15.             [DESCRIPTION] => 'Cblock desc'  string Description (dynamic Property)
  16.         )
  17.     )
  18.     ...
  19. )