示例#1
0
 /**
  * @return TCVM_Payment_Model_LogError
  */
 public static function GetInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
示例#2
0
 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()));
 }