game2006api/webapp/mt/Recharge.php
aozhiwei 082b0a33ae 1
2024-07-26 15:18:35 +08:00

32 lines
574 B
PHP

<?php
namespace mt;
use phpcommon;
class Recharge {
public static function get($id)
{
return array_key_exists($id, self::getMetaList()) ? 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('Recharge@Recharge.php');
}
return self::$metaList;
}
protected static $metaList;
}