Class IMP_Thread

Description

The IMP_Thread class extends the IMAP_Thread class to include a function to generate the thread tree images. This class is necessary to ensure backwards compatibility with Horde 3.0.

For the next (mythical) release of Horde 4.x, this code should be merged into the IMAP_Thread class.

$Horde: imp/lib/IMAP/Thread.php,v 1.5.2.8 2009/01/06 15:24:05 jan Exp $

Copyright 2005-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.

Located in /lib/IMAP/Thread.php (line 24)

IMAP_Thread
   |
   --IMP_Thread
Variable Summary
 array $_imglist
Method Summary
 array getImageUrls ([ids $ids = true])
 array getThreadImageTree (array $indices, boolean $sortdir)
 array getThreadTreeOb (array $indices, boolean $sortdir)
Variables
array $_imglist = array(
'0' => 'blank.png',
'1' => 'line.png',
'2' => 'join.png',
'3' => 'joinbottom-down.png',
'4' => 'joinbottom.png'
)
(line 31)

Images used and their internal representations.

Methods
getImageUrls (line 143)

Get potential image URLs that may be used to display a thread.

This function may be called statically, i.e.: IMP_Thread::getImageUrls();

  • return: An array with the image code as a key and the image url as the value.
  • since: IMP 4.2
array getImageUrls ([ids $ids = true])
  • ids $ids: Add unique DOM ID to each image?
getThreadImageTree (line 118)

Generate the thread representation image for the given index list.

  • return: An array with the index as the key and the thread image representation as the value.
array getThreadImageTree (array $indices, boolean $sortdir)
  • array $indices: The list of indices to create a tree for.
  • boolean $sortdir: True for newest first, false for oldest first.
getThreadTreeOb (line 50)

Generate the thread representation for the given index list in the internal format (a string with each character representing the graphic to be displayed from $_imglist).

  • return: An array with the index as the key and the interal thread representation as the value.
array getThreadTreeOb (array $indices, boolean $sortdir)
  • array $indices: The list of indices to create a tree for.
  • boolean $sortdir: True for newest first, false for oldest first.

Documentation generated on Sun, 30 Jan 2011 05:28:18 +0000 by phpDocumentor 1.4.3