[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/lib/IMAP/ -> Sort.php (source)

   1  <?php
   2  
   3  require_once 'Horde/IMAP/Sort.php';
   4  
   5  /**
   6   * The IMP_IMAP_Sort:: class extends the IMAP_Sort class in order to
   7   * provide necessary bug fixes to ensure backwards compatibility with Horde
   8   * 3.0.
   9   *
  10   * $Horde: imp/lib/IMAP/Sort.php,v 1.1.2.2 2007/01/02 13:54:58 jan Exp $
  11   *
  12   * Copyright 2006-2007 Michael Slusarz <slusarz@horde.org>
  13   *
  14   * See the enclosed file COPYING for license information (GPL). If you
  15   * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
  16   *
  17   * @author  Michael Slusarz <slusarz@horde.org>
  18   * @since   IMP 4.1
  19   * @package Horde_IMAP
  20   */
  21  class IMP_IMAP_Sort extends IMAP_Sort {
  22  
  23      /**
  24       * Sort a list of mailboxes (by value).
  25       *
  26       * @param array &$mbox    The list of mailboxes to sort.
  27       * @param boolean $inbox  When sorting, always put 'INBOX' at the head of
  28       *                        the list?
  29       * @param boolean $index  Maintain index association?
  30       */
  31      function sortMailboxes(&$mbox, $inbox = true, $index = false)
  32      {
  33          $this->_sortinbox = $inbox;
  34          if ($index) {
  35              uasort($mbox, array(&$this, '_mbox_cmp'));
  36          } else {
  37              usort($mbox, array(&$this, '_mbox_cmp'));
  38          }
  39      }
  40  
  41  }


Généré le : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics