/** * singleton function used to manage this object * * @param string $mode the mode of operation: live or test * * @return object * @static */ static function &singleton($mode, $component, &$paymentProcessor) { if (self::$_singleton === null) { self::$_singleton = new CRM_Core_Payment_OgoneIPN($mode, $paymentProcessor); } return self::$_singleton; }