SproutCMS

This is the code documentation for the SproutCMS project

function getAllChildren()

Returns an array of all children nodes, including sub-children

The array will be id => name.
This function requires the table to have a column named 'name'.
The name field will be indented according to the depth.
If specified, the exclude_id argument will be used to
exclude nodes (and their children) according to id.

Usage

unknown $Treenode->getAllChildren ( [ mixed $exclude_id [, mixed $indent_str [, mixed $indent ]]] );

Arguments

  1. $exclude_id = NULL
  2. $indent_str =
  3. $indent = 0