API docs     >     Content Blocks     >     CblockMgr

CblockMgr->getSubnodes

Description

getSubnodes ( $cbId )
Gets the subnodes of the specified Cblock

Parameters

$cbId
int
Cblock Id of the parent Cblock

Returns

array|false
Array of subnodes or FALSE in case of an error
  1. Array(                                  array Array of n Contentblocks
  2.     [0] => Array(
  3.         [ID] => 225                     int Id
  4.         [LFT] => 447                    int Id of the left node in the nested set tree structure
  5.         [RGT] => 448                    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.         [TITLE] => 'Home'               string Title
  8.         [LEVEL] => 3                    int Level in tree
  9.         [PARENT] => 2                   int Parent Id
  10.         [PNAME] => 'homepage'           string Permanent name
  11.     )
  12.     ...
  13. )