game2006api/webapp/mt/FormulaPvp.php
aozhiwei 5cf43a7e50 1
2022-05-25 21:50:44 +08:00

25 lines
429 B
PHP

<?php
namespace mt;
use phpcommon;
class FormulaPvp {
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('pvp@formula.php');
}
return self::$metaList;
}
protected static $metaList;
}