_getMarketMysql()->execQueryOne ('SELECT COUNT(*) AS sold_num FROM t_box_order', array( ':batch_id' => $batchId )); return $row && $row['sold_num'] ? $row['sold_num'] : 0; } public function isBuyed($buyerAddress, $batchId) { return 0; } }