/** * 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_PaymentExpressIPN($mode, $paymentProcessor); } return self::$_singleton; }
/** * singleton function used to manage this object * * @param string $mode the mode of operation: live or test * * @param $paymentProcessor * @param null $paymentForm * @param bool $force * * @return object * @static */ static function &singleton($mode = 'test', &$paymentProcessor, &$paymentForm = NULL, $force = FALSE) { if (self::$_singleton === NULL) { self::$_singleton = new CRM_Core_Payment_PaymentExpressIPN($mode, $paymentProcessor); } return self::$_singleton; }