game2006api/webapp/mt/MarketGoods.php
aozhiwei 0811688c39 1
2022-01-25 17:27:01 +08:00

35 lines
605 B
PHP

<?php
namespace mt;
require_once('mt/AttrHelper.php');
require_once('mt/StrHelper.php');
use phpcommon;
class MarketGoods {
public static function get($id)
{
return getXVal(self::getMetaList(), $id, null);
}
public static function traverseMeta($cb)
{
foreach (self::getMetaList() as $meta) {
$cb($meta);
}
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('goods@market.php');
}
return self::$metaList;
}
protected static $metaList;
}