PEAR::setErrorHandling vs. $this->setErrorHandling

From: Date: Wed, 26 Mar 2003 15:08:50 +0000
Subject: PEAR::setErrorHandling vs. $this->setErrorHandling
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4437@lists.php.net to get a copy of this message
    // }}}
    // {{{ setErrorHandling()
    /**
     * Sets how errors generated by this DB object should be handled.
     * Can be invoked both in objects and statically.  If called
     * statically, setErrorHandling sets the default behaviour for all
     * PEAR objects.  If called in an object, setErrorHandling sets
     * the default behaviour for that object.
ok: I can do this in global space PEAR:: setErrorHandling(.... in a class
I can do this $this->setErrorHandling(...     to set it for a specific instance
but I am writing an class that handles the pear error, so now I need to set ErrorHanling for all PEAR enabled object like setting it globally... I am correct this is not possible? Can someone plz explain if there is a strategic reason behind this behaviour? shouldn't PEAR::setErrorHandling(.... set it 'globally' whereever you call it? Help & insights would be appreciatted bas

« previous php.pear.general (#4437) next »