game2006api/webapp/mt/HashRateShop.php
aozhiwei ab80faccc6 1
2024-10-10 17:15:56 +08:00

34 lines
612 B
PHP

<?php
namespace mt;
use phpcommon;
class HashRateShop {
const TOTAL_BUY_LIMIT = 0;
const DAILY_BUY_LIMIT = 1;
const WEEKLY_BUY_LIMIT = 2;
const MONTH_BUY_LIMIT = 3;
public static function find($id){
return getXVal(self::getMetaList(), $id, null);
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('hashrateshop@hashrateshop.php');
}
return self::$metaList;
}
public static function all()
{
return self::getMetaList();
}
protected static $metaList;
}