game2006api/webapp/mt/Bigwheel.php
aozhiwei a7f15e2f9b 1
2024-08-01 13:56:40 +08:00

34 lines
574 B
PHP

<?php
namespace mt;
use phpcommon;
class Bigwheel
{
public static function get($id)
{
return getXVal(self::getMetaList(), $id);
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('Bigwheel@Bigwheel.php');
}
return self::$metaList;
}
public static function traverseMeta($cb)
{
foreach (self::getMetaList() as $meta) {
if (!$cb($meta)) {
break;
}
}
}
protected static $metaList;
}