Exemplo n.º 1
0
 /**
  * singleton function used to manage this object.
  *
  * @return object
  * @static
  */
 static function &singleton($package = NULL, $msgCallback = FALSE, $contextCallback = FALSE, $throwPEAR_Error = FALSE, $stackClass = 'PEAR_ErrorStack')
 {
     if (self::$_singleton === NULL) {
         self::$_singleton = new CRM_Core_Error('CiviCRM');
     }
     return self::$_singleton;
 }
Exemplo n.º 2
0
 /**
  * singleton function used to manage this object. This function is not
  * explicity declared static to be compatible with PEAR_ErrorStack
  *  
  * @return object
  */
 function &singleton()
 {
     if (self::$_singleton === null) {
         self::$_singleton = new CRM_Core_Error('CiviCRM');
     }
     return self::$_singleton;
 }