diff --git a/webapp/models/Transaction.php b/webapp/models/Transaction.php new file mode 100644 index 00000000..52df6b58 --- /dev/null +++ b/webapp/models/Transaction.php @@ -0,0 +1,35 @@ +_getSelfMysql(), + 't_transaction', + array( + 'account_id' => myself()->_getAccountId() + ) + ); + return rows; + } + + public static function find($transId) + { + $row = SqlHelper::ormSelectOne( + myself()->_getMarketMysql(), + 't_transaction', + array( + 'account_id' => myself()->_getAccountId(), + 'trans_id' => $transId, + ) + ); + return $row; + } + +}