/** * construcor */ function __construct() { parent::__construct('CiviCRM'); $log =& CRM_Core_Config::getLog(); $this->setLogger($log); // set up error handling for Pear Error Stack $this->setDefaultCallback(array($this, 'handlePES')); }
/** * Constructor. */ public function __construct() { parent::__construct('CiviCRM'); $log = CRM_Core_Config::getLog(); $this->setLogger($log); // PEAR<=1.9.0 does not declare "static" properly. if (!is_callable(array('PEAR', '__callStatic'))) { $this->setDefaultCallback(array($this, 'handlePES')); } else { PEAR_ErrorStack::setDefaultCallback(array($this, 'handlePES')); } }
/** * construcor */ function CRM_Core_Error($name = 'CRM') { parent::PEAR_ErrorStack($name); $log =& CRM_Core_Config::getLog(); $this->setLogger($log); // set up error handling for Pear Error Stack $this->setDefaultCallback(array($this, 'handlePES')); }