[dev] Re: [cvs] commit: framework/Notification/Notification Listener.php framework/Notification/Notification/Listener status.php

Jon Parise jon at horde.org
Mon Mar 22 09:51:48 PST 2004


On Mon, Mar 22, 2004 at 09:25:20AM -0800, Chuck Hagenbuch wrote:

> chuck       2004/03/22 09:25:20 PST
> 
>   Modified files:
>     Notification/Notification Listener.php 
>     Notification/Notification/Listener status.php 
>   Log:
>   - PEAR_Error objects are okay too (as is anything with a getMessage() method)

In that case, how about using method_exists($ob, 'getMessage')?  I
don't know if there's much of a performance penalty compared to
is_a(), but it's probably negligible.

-- 
Jon Parise (jon at horde.org) :: The Horde Project (http://horde.org/)


More information about the dev mailing list