game2006api/webapp/mt/CircuitTask.php
hujiabin 6cf0bf5528 1
2024-10-17 18:01:38 +08:00

34 lines
670 B
PHP

<?php
namespace mt;
use phpcommon;
class CircuitTask {
const BATTLE_TIMES_END = 1;
const COMPLETE_HASH_TASK_END = 2;
const LOGIN_TIMES_END = 3;
public static function getListBySeason($season){
$metas = array();
foreach (self::getMetaList() as $meta){
if ($meta['season'] == $season){
array_push($metas,$meta);
}
}
return $metas;
}
protected static function getMetaList()
{
if (!self::$metaList) {
self::$metaList = getMetaTable('circuitTask@circuitTask.php');
}
return self::$metaList;
}
protected static $metaList;
}