当前位置: 首页>>代码示例>>PHP>>正文


PHP Stats::getTopPointsCorp方法代码示例

本文整理汇总了PHP中Stats::getTopPointsCorp方法的典型用法代码示例。如果您正苦于以下问题:PHP Stats::getTopPointsCorp方法的具体用法?PHP Stats::getTopPointsCorp怎么用?PHP Stats::getTopPointsCorp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Stats的用法示例。


在下文中一共展示了Stats::getTopPointsCorp方法的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));
开发者ID:Nord001,项目名称:zKillboard,代码行数:31,代码来源:top.php

示例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));
开发者ID:Covert-Inferno,项目名称:zKillboard,代码行数:31,代码来源:top.php


注:本文中的Stats::getTopPointsCorp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。