/** * @return TCVM_Payment_Model_LogError */ public static function GetInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
protected function _logErrorPayment($orderId, $payment, $error) { $errorModel = TCVM_Payment_Model_LogError::GetInstance(); $errorModel->insert(array("order_id" => $orderId, "payment" => $payment, "error" => serialize($error), "date_add" => time())); }