game2006api/webapp/mt/Attr.php
aozhiwei 8134287775 1
2022-04-15 14:58:45 +08:00

25 lines
421 B
PHP

<?php
namespace mt;
use phpcommon;
class Attr {
public static function get($id)
{
return array_key_exists($id, self::getMetaList()) ? self::getMetaList()[$id] : null;
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('attr@attr.php');
}
return self::$metaList;
}
protected static $metaList;
}