[dev] Horde_Prefs

Jan Schneider jan at horde.org
Tue Apr 6 08:38:51 PDT 2004


Zitat von Michael Rubinsky <mike at theupstairsroom.com>:

> I'm in the process of writing a Prefs_imsp driver.  In digging in the code
> and debugging my code, I've noticed that even if there is an error in the
> store() method and a PEAR_Error is returned,  it is still displayed to the
> user that preferences have been updated successfully.  Since store() is run
> as a shut_down_function, is there any way to capture a store() error and
> notify the user - other than not having any errors ;)
>
> Any thoughts on this would be appreciated!

I'm not sure when the shutdown functions are called, but if they get called
before session data being serialized and objects being disposed, you should
simply be able to do a $notification->push().

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list