API docs     >     Pages and Sites     >     PageMgr

PageMgr->getSubnodes

Description

getSubnodes ( $pageId, $noTrash = true )
Gets the subnodes of the specified Page

Parameters

$pageId
int
Page Id of the parent Page
$noTrash
bool
(optional) FALSE when item from the Trash should also be returned

Returns

array|false
Array of subnodes or FALSE in case of an error
  1. Array(                                  array Array of n Pages
  2.     [0] => Array(
  3.         [LFT] => 2                      int Id of the left node in the nested set tree structure
  4.         [RGT] => 3                      int Id of the right node in the nested set tree structure
  5.         [VERSIONPUBLISHED] => 999999    int Published version (either a specific version or 999999 if set to 'ALWAYS_LATEST_APPROVED_VERSION')
  6.         [ID] => 2                       int Id
  7.         [LEVEL] => 2                    int Level in tree
  8.         [PARENT] => 1                   int Parent Id
  9.         [PNAME] => 'Overview'           string Permanent name
  10.         [VERSION] => 6                  int Version
  11.         [ACTIVE] => 1                   int 1 if active, 0 if inactive
  12.         [HIDDEN] => 1                   int 1 if hidden, 0 if visible
  13.         [LOCKED] => 0                   int 1 if locked by an User, 0 if not
  14.         [NAME] => 'Overview'            string Name
  15.     )
  16.     ...
  17. )