addChildNodeToTree (line 
53)
	
  
	
Will insert a new value into the tree, based on a given comparison value.
	
	
		void
		
			addChildNodeToTree
		
					(mixed $comparisonValue, mixed $value, array &$tree)
			
			
					- 
				mixed
				$comparisonValue: comparisonValue the value to determine where the new element should be placed.			
- 
				mixed
				$value: value the new node to insert			
- 
				array
				&$tree: tree the tree to insert the node in, by ref			
 
	
	
		findParentForChild (line 
25)
	
  
	
Recursive function to find the correct parent for a new node.
	
	
	
		int
		
			findParentForChild
		
					(mixed $value, int $treeIndexToStart, array $tree)
			
			
					- 
				mixed
				$value: value the value to find a parent for			
- 
				int
				$treeIndexToStart: treeIndexToStart where to start the search, usually the root node (0)			
- 
				array
				$tree: tree the tree to search			
 
	
	
		simpleWalkTreePre (line 
188)
	
  
	
Recursive function that outputs a tree In-Pre-Order.
	
	
		void
		
			simpleWalkTreePre
		
					(int $index, array $tree)
			
			
					- 
				int
				$index: index the node to start (usually 0)			
- 
				array
				$tree: tree the tree to walk			
 
	
	
		walkTreeInPostOrderCreatingFoldersUnderTrash (line 
146)
	
  
	
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 
132)
	
  
	
Recursively delete a tree of mail folders.
	
	
		void
		
			walkTreeInPreOrderDeleteFolders
		
					(int $index, stream $imap_stream, array $tree)
			
			
					- 
				int
				$index: index the place in the tree to start, usually 0			
- 
				stream
				$imap_stream: imap_stream the IMAP connection to send commands to			
- 
				array
				$tree: tree the tree to walk			
 
	
	
		walkTreeInPreOrderEmptyFolder (line 
94)
	
  
	
Recursively walk the tree of mailboxes in the given folder and delete all folders and messages
	
	
		void
		
			walkTreeInPreOrderEmptyFolder
		
					(int $index, stream $imap_stream, array $tree, mailbox $mailbox)
			
			
					- 
				int
				$index: index the place in the tree to start, usually 0			
- 
				stream
				$imap_stream: imap_stream the IMAP connection to send commands to			
- 
				array
				$tree: tree the tree to walk			
- 
				mailbox
				$mailbox: the name of the root folder to empty			
 
	
	
		walkTreeInPreOrderEmptyTrash (line 
80)
	
  
	
Recursively walk the tree of trash mailboxes and delete all folders and messages
	
	
		void
		
			walkTreeInPreOrderEmptyTrash
		
					(int $index, stream $imap_stream, array $tree)
			
			
					- 
				int
				$index: index the place in the tree to start, usually 0			
- 
				stream
				$imap_stream: imap_stream the IMAP connection to send commands to			
- 
				array
				$tree: tree the tree to walk