/src/left_main.php

Description

left_main.php

This is the code for the left bar. The left bar shows the folders available, and has cookie information.

Includes
require_once (SM_PATH.'include/validate.php') (line 22)
require_once (SM_PATH.'functions/imap.php') (line 23)
require_once (SM_PATH.'functions/html.php') (line 26)
require_once (SM_PATH.'functions/plugin.php') (line 24)
require_once (SM_PATH.'functions/page_header.php') (line 25)
Constants
SM_BOX_COLLAPSED = 1 (line 30)
SM_BOX_UNCOLLAPSED = 0 (line 29)
Functions
compute_folder_children (line 121)

Recursive function that computes the collapsed status and parent (or not parent) status of this box, and the visiblity and collapsed status and parent (or not parent) status for all children boxes.

void compute_folder_children ( &$parbox,  $boxcount)
  • &$parbox
  • $boxcount
create_collapse_link (line 171)

Create the link for a parent folder that will allow that parent folder to either be collapsed or expaned, as is currently appropriate.

void create_collapse_link ( $boxnum)
  • $boxnum
create_unseen_string (line 201)

create_unseen_string:

Create unseen and total message count for both this folder and it's subfolders.

  • return: unseen message string (for display)
array[0] create_unseen_string (string $boxName, array $boxArray, mixed $imapConnection,  $unseen_type)
  • string $boxName: name of the current mailbox
  • array $boxArray: array for the current mailbox
  • $unseen_type
formatMailboxName (line 34)
void formatMailboxName ( $imapConnection,  $box_array)
  • $imapConnection
  • $box_array
is_parent_box (line 274)

This simple function checks if a box is another box's parent.

void is_parent_box ( $curbox_name,  $parbox_name)
  • $curbox_name
  • $parbox_name

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