SproutCMS

This is the code documentation for the SproutCMS project

function loadTree()

Loads a flat table into a tree structure.
Requires the table to have an id, parent_id and record_order field.

Usage

Treenode Treenode::loadTree ( string $table [, array $conditions [, string $order ]] );

Arguments

  1. string $table
    The name of the table to load
  2. array $conditions = 1
    Query conditions, in the format used by Pdb::buildClause
  3. string $order = record_order
    The column to order by. Defaults to 'record_order'

Return value