Пример #1
0
 /**
  * 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'));
 }
Пример #2
0
 /**
  * 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'));
     }
 }
Пример #3
0
 /**
  * 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'));
 }