コード例 #1
0
 public static function getProcessingInfo()
 {
     return getValueByQuery("SELECT * FROM `update` WHERE finished = 1 ORDER BY id DESC LIMIT 1");
 }
コード例 #2
0
 private static function getLastBlock()
 {
     $lastBlock = (int) getValueByQuery("SELECT block FROM tx_data ORDER BY block DESC LIMIT 1");
     self::$lastBlock = $lastBlock == 0 ? 1 : $lastBlock + 1;
 }