本文整理汇总了PHP中Stats::getTopPointsAlli方法的典型用法代码示例。如果您正苦于以下问题:PHP Stats::getTopPointsAlli方法的具体用法?PHP Stats::getTopPointsAlli怎么用?PHP Stats::getTopPointsAlli使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stats
的用法示例。
在下文中一共展示了Stats::getTopPointsAlli方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
$parameters['month'] = date('n');
break;
case 'weekly':
$parameters['year'] = date('Y');
$parameters['week'] = date('W');
break;
default:
die('Not supported yet.');
}
$topLists = array();
if ($type == 'kills') {
$topLists[] = array('type' => 'character', 'data' => Stats::getTopPilots($parameters, $alltime));
$topLists[] = array('type' => 'corporation', 'data' => Stats::getTopCorps($parameters, $alltime));
$topLists[] = array('type' => 'alliance', 'data' => Stats::getTopAllis($parameters, $alltime));
$topLists[] = array('type' => 'ship', 'data' => Stats::getTopShips($parameters, $alltime));
$topLists[] = array('type' => 'system', 'data' => Stats::getTopSystems($parameters, $alltime));
//$topLists[] = array("type" => "weapon", "data" => Stats::getTopWeapons($parameters, $alltime));
$parameters['!factionID'] = 0;
$topLists[] = array('name' => 'Top Faction Characters', 'type' => 'character', 'data' => Stats::getTopPilots($parameters, $alltime));
$topLists[] = array('name' => 'Top Faction Corporations', 'type' => 'corporation', 'data' => Stats::getTopCorps($parameters, $alltime));
$topLists[] = array('name' => 'Top Faction Alliances', 'type' => 'alliance', 'data' => Stats::getTopAllis($parameters, $alltime));
} elseif ($type == 'points') {
$topLists[] = array('name' => 'Top Character Points', 'ranked' => 'Points', 'type' => 'character', 'data' => Stats::getTopPointsPilot($parameters));
$topLists[] = array('name' => 'Top Corporation Points', 'ranked' => 'Points', 'type' => 'corporation', 'data' => Stats::getTopPointsCorp($parameters));
$topLists[] = array('name' => 'Top Alliance Points', 'ranked' => 'Points', 'type' => 'alliance', 'data' => Stats::getTopPointsAlli($parameters));
$parameters['!factionID'] = 0;
$topLists[] = array('name' => 'Top Faction Character Points', 'ranked' => 'Points', 'type' => 'character', 'data' => Stats::getTopPointsPilot($parameters));
$topLists[] = array('name' => 'Top Faction Corporation Points', 'ranked' => 'Points', 'type' => 'corporation', 'data' => Stats::getTopPointsCorp($parameters));
$topLists[] = array('name' => 'Top Faction Alliance Points', 'ranked' => 'Points', 'type' => 'alliance', 'data' => Stats::getTopPointsAlli($parameters));
}
$app->render('top.html', array('topLists' => $topLists, 'page' => $page, 'type' => $type));
示例2: date
$parameters["month"] = date("n");
break;
case "weekly":
$parameters["year"] = date("Y");
$parameters["week"] = date("W");
break;
default:
die("Not supported yet.");
}
$topLists = array();
if ($type == "kills") {
$topLists[] = array("type" => "character", "data" => Stats::getTopPilots($parameters, $alltime));
$topLists[] = array("type" => "corporation", "data" => Stats::getTopCorps($parameters, $alltime));
$topLists[] = array("type" => "alliance", "data" => Stats::getTopAllis($parameters, $alltime));
$topLists[] = array("type" => "ship", "data" => Stats::getTopShips($parameters, $alltime));
$topLists[] = array("type" => "system", "data" => Stats::getTopSystems($parameters, $alltime));
$topLists[] = array("type" => "weapon", "data" => Stats::getTopWeapons($parameters, $alltime));
$parameters["!factionID"] = 0;
$topLists[] = array("name" => "Top Faction Characters", "type" => "character", "data" => Stats::getTopPilots($parameters, $alltime));
$topLists[] = array("name" => "Top Faction Corporations", "type" => "corporation", "data" => Stats::getTopCorps($parameters, $alltime));
$topLists[] = array("name" => "Top Faction Alliances", "type" => "alliance", "data" => Stats::getTopAllis($parameters, $alltime));
} elseif ($type == "points") {
$topLists[] = array("name" => "Top Character Points", "ranked" => "Points", "type" => "character", "data" => Stats::getTopPointsPilot($parameters));
$topLists[] = array("name" => "Top Corporation Points", "ranked" => "Points", "type" => "corporation", "data" => Stats::getTopPointsCorp($parameters));
$topLists[] = array("name" => "Top Alliance Points", "ranked" => "Points", "type" => "alliance", "data" => Stats::getTopPointsAlli($parameters));
$parameters["!factionID"] = 0;
$topLists[] = array("name" => "Top Faction Character Points", "ranked" => "Points", "type" => "character", "data" => Stats::getTopPointsPilot($parameters));
$topLists[] = array("name" => "Top Faction Corporation Points", "ranked" => "Points", "type" => "corporation", "data" => Stats::getTopPointsCorp($parameters));
$topLists[] = array("name" => "Top Faction Alliance Points", "ranked" => "Points", "type" => "alliance", "data" => Stats::getTopPointsAlli($parameters));
}
$app->render("top.html", array("topLists" => $topLists, "page" => $page, "type" => $type));