commit: horde/docs CHANGES imp alerts.php folders.php mailbox.php menu.php navigator.php imp/docs CHANGES imp/graphics/alerts error.gif message.gif warning.gif imp/lib folder.php horde/lib Horde.php

chuck@horde.org chuck@horde.org
12 Nov 2000 04:35:56 -0000


chuck       2000/11/11 20:35:56 PST

  Modified files:
    docs                 CHANGES 
    .                    folders.php mailbox.php menu.php 
                         navigator.php 
    docs                 CHANGES 
    lib                  folder.php 
    lib                  Horde.php 
  Added files:
    .                    alerts.php 
    graphics/alerts      error.gif message.gif warning.gif 
  Log:
  Here's a stab at decent error reporting. We have:
  
  Horde::raiseError() - this method adds to a global error stack
  ($hordeErrorStack) a message consiting of a type (HORDE_ERROR,
  HORDE_WARNING, or HORDE_MESSAGE) and a text message.
  
  imp/alerts.php and associated graphics - this file is included by menu.php
  right after the menu, and displays any errors in $hordeErrorStack, along
  with any IMAP alerts (they are displayed as HORDE_MESSAGEs).
  
  imp/lib/folder.php has been updated to call Horde::raiseError() on any
  errors, and the error messages should be pretty informative. I got a few
  other places where we were just setting an $errormsg variable, but obviously
  there are a bunch of other places that we should be displaying errors to the
  user. If this looks like a good way to go about displaying them, then we can
  get started on all that.
  
  Revision  Changes    Path
  1.85      +1 -0      horde/docs/CHANGES
  2.88      +3 -4      imp/folders.php
  2.215     +2 -2      imp/mailbox.php
  2.57      +3 -1      imp/menu.php
  1.83      +19 -16    imp/navigator.php
  1.223     +2 -0      imp/docs/CHANGES
  1.18      +61 -22    imp/lib/folder.php
  1.59      +25 -4     horde/lib/Horde.php