C# 클래스 BF2Statistics.Web.Bf2Stats.RankingsController

상속: Controller
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter

보호된 프로퍼티들

프로퍼티 타입 설명
ActionNames string[]
IndexCatagories List
IndexQueries string[]

공개 메소드들

메소드 설명
FormatNumber ( object Num ) : string
GetPage ( int index ) : int

Returns the page number that the players stat would appear

HandleRequest ( MvcRoute Route ) : void
RankingsController ( HttpClient Client ) : System

보호된 메소드들

메소드 설명
GetTopFromQuery ( int id, StatsDatabase Database ) : List

Processes the query ID and returns the results

비공개 메소드들

메소드 설명
FinishQuery ( string action, BF2Statistics.Database.QueryBuilder.SelectQueryBuilder builder, bool &valueIsDecimal ) : void

This method is used to fetch an array of columns we need in our detailed rankings page. It also returns in 2 out variables additional data we need to adjust our query

GetHeaderName ( string action ) : string

Converts the url action to a string that is used in the table header

ShowIndex ( ) : void
ShowRankingType ( MvcRoute Route ) : void

메소드 상세

FormatNumber() 공개 메소드

public FormatNumber ( object Num ) : string
Num object
리턴 string

GetPage() 공개 메소드

Returns the page number that the players stat would appear
public GetPage ( int index ) : int
index int The player position
리턴 int

GetTopFromQuery() 보호된 메소드

Processes the query ID and returns the results
protected GetTopFromQuery ( int id, StatsDatabase Database ) : List
id int The Query id
Database BF2Statistics.Database.StatsDatabase The stats database connection
리턴 List

HandleRequest() 공개 메소드

public HandleRequest ( MvcRoute Route ) : void
Route MvcRoute
리턴 void

RankingsController() 공개 메소드

public RankingsController ( HttpClient Client ) : System
Client HttpClient
리턴 System

프로퍼티 상세

ActionNames 보호되어 있는 정적으로 프로퍼티

An array of Action names in the URL that are accepted
protected static string[] ActionNames
리턴 string[]

IndexCatagories 보호되어 있는 정적으로 프로퍼티

A static array of stats catagories on the ranking index page
protected static List IndexCatagories
리턴 List

IndexQueries 보호되어 있는 정적으로 프로퍼티

A static array of all the different ranking sections queries
protected static string[] IndexQueries
리턴 string[]