34 lines
612 B
PHP
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;
|
|
|
|
}
|