/functions/tree.php

Description

tree.php

This file provides functions to walk trees of folders, for instance to delete a whole tree.

Includes
require_once (SM_PATH.'functions/imap.php') (line 16)

Clearly, this needs the IMAP functions..

Functions
addChildNodeToTree (line 54)

Will insert a new value into the tree, based on a given comparison value.

void addChildNodeToTree (mixed $comparisonValue, mixed $value, mixed &$tree)
findParentForChild (line 26)

Recursive function to find the correct parent for a new node.

  • return: the index of the parent
int findParentForChild (mixed $value, mixed $treeIndexToStart, mixed $tree)
simpleWalkTreePre (line 172)

Recursive function that outputs a tree In-Pre-Order.

void simpleWalkTreePre (mixed $index, mixed $tree)
walkTreeInPostOrderCreatingFoldersUnderTrash (line 134)

Recursively walk a tree of folders to create them under the trash folder.

void walkTreeInPostOrderCreatingFoldersUnderTrash ( $index,  $imap_stream,  $tree,  $topFolderName)
  • $index
  • $imap_stream
  • $tree
  • $topFolderName
walkTreeInPreOrderDeleteFolders (line 120)

Recursively delete a tree of mail folders.

void walkTreeInPreOrderDeleteFolders (mixed $index, mixed $imap_stream, mixed $tree)
walkTreeInPreOrderEmptyTrash (line 81)

Recursively walk the tree of trash mailboxes and delete all folders and messages

void walkTreeInPreOrderEmptyTrash (mixed $index, mixed $imap_stream, mixed $tree)

Documentation generated on Sat, 07 Oct 2006 16:33:57 +0300 by phpDocumentor 1.3.0RC6