API docs     >     Content Blocks     >     Entrymasks

Entrymasks->getTree

Description

getTree ( $entrymaskId = NULL, $maxLevels = 2 )
Gets Entrymask tree nodes

Parameters

$entrymaskId
int
(optional) From which Entrymask Id the tree should be returned
$maxLevels
int
(optional) Specifies the maximum level of nodes to get

Returns

array
Array of Entrymask nodes
  1. Array(                              array Array of n Entrymasks
  2.     [0] => Array(
  3.         [ID] => 1                   int Id
  4.         [LFT] => 1                  int Id of the left node in the nested set tree structure
  5.         [RGT] => 24                 int Id of the right node in the nested set tree structure
  6.         [VERSIONPUBLISHED] => 0     int Published version (either a specific version or 999999 if set to 'ALWAYS_LATEST_APPROVED_VERSION')
  7.         [TITLE] => 'Entrymaskxx'    string Title
  8.         [LEVEL] => 1                int  Level in tree
  9.         [PARENT] => 0               int Parent Id
  10.         [PNAME] => 'Entrymaskxx'    string Permanent name
  11.         [FOLDER] => 1               int 1 if folder, 0 if not
  12.         [RREAD] => 1                int 1 if User owns Permissions to read this Object, 0 if not
  13.         [RWRITE] => 1               int 1 if User owns Permissions to write this Object, 0 if not
  14.         [RDELETE] => 1              int 1 if User owns Permissions to delete this Object, 0 if not
  15.         [RSUB] => 1                 int 1 if User owns Permissions to create subnodes under this Object, 0 if not
  16.         [NAME] => 'Entrymaskxx'     string Name
  17.     )
  18.     ...
  19. )