/** * @return TCVM_Payment_Model_LogAdaptive */ public static function GetInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
protected function _logAdaptive($orderId, $payKey) { $errorModel = TCVM_Payment_Model_LogAdaptive::GetInstance(); $errorModel->insert(array("order_id" => $orderId, "pay_key" => $payKey, "date_add" => time())); }