/functions/tree.php

Description

tree.php

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

Functions
addChildNodeToTree (line 52)

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

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

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 187)

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

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

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 131)

Recursively delete a tree of mail folders.

void walkTreeInPreOrderDeleteFolders (mixed $index, mixed $imap_stream, mixed $tree)
walkTreeInPreOrderEmptyFolder (line 93)

Recursively walk the tree of mailboxes in the given folder and delete all folders and messages

void walkTreeInPreOrderEmptyFolder (mixed $index, mixed $imap_stream, mixed $tree, mixed $mailbox)
walkTreeInPreOrderEmptyTrash (line 79)

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:13:59 +0300 by phpDocumentor 1.3.0RC6