_getMysql(''), 't_market', array( 'order_id' => $orderId ) ); return $row; } public static function add($orderId, $fieldsKv) { } public static function updatePrice($orderId, $currency, $price) { } public static function buyOk($orderId) { } public static function cancel($orderId) { } private static function internalUpdate($orderId, $fieldsKv){ SqlHelper::upsert (myself()->_getMysql(''), 't_market', array( 'order_id' => $orderId ), array( ), array( 'order_id' => $orderId, ) ); SqlHelper::update (myself()->_getMysql(''), 't_market', array( 'order_id' => $orderId ), $fieldsKv ); } }