XLRstats v3 - League Edition
  • Package
  • Class
  • Tree

Packages

  • app
    • Controller
      • Component
    • Model
    • Plugin
      • Dashboard
        • Controller
        • Model
    • View
      • Helper

Classes

  • AchievementsController
  • AliasesController
  • AppController
  • AwardsController
  • FeedsController
  • InstallController
  • IpAliasesController
  • LeaguesController
  • MapStatsController
  • MonthlyStatsController
  • OpponentsController
  • PagesController
  • PenaltiesController
  • PlayerActivitiesController
  • PlayerMapsController
  • PlayerStatsController
  • PlayerWeaponsController
  • ServerInfoController
  • ServerPlayersController
  • UserSoldiersController
  • WeaponStatsController
  • WeeklyStatsController

Class MapStatsController

XLRstats : Real Time Player Stats (http://www.xlrstats.com) (CC) BY-NC-SA 2005-2013, Mark Weirath, Özgür Uysal

Licensed under the Creative Commons BY-NC-SA 3.0 License Redistributions of files must retain the above copyright notice.

Controller
Extended by AppController
Extended by MapStatsController
Package: app\Controller
License: Commons BY-NC-SA 3.0 License (http://creativecommons.org/licenses/by-nc-sa/3.0/)
Version: 0.1
Since: XLRstats v3.0
Link: http://www.xlrstats.com
Located at MapStatsController.php

Methods summary

public
# index( )

Displays a list of maps

Displays a list of maps

public mixed
# mapStatsJson( )

Queries player maps and pass data to view file app/View/MapStats/json/maps_json.ctp to be processed by dataTables.

Queries player maps and pass data to view file app/View/MapStats/json/maps_json.ctp to be processed by dataTables.

Sample data returned: Array ( [sEcho] => 1 [iTotalRecords] => 2 [iTotalDisplayRecords] => 2 [aaData] => Array ( [0] => Array ( [0] => 1 // Map ID [1] => MP_Subway // Map name [2] => 7144 // Kills [3] => 213 // Deaths [4] => 45 // Team Kills ) [1] => Array ( [0] => 2 [1] => MP001 [2] => 17772 [3] => 314 [4] => 141 ) ) )

Returns

mixed
public array
# view( null $mapID = null )

Displays statistics of a specific map

Displays statistics of a specific map

Parameters

$mapID
null
$mapID

Returns

array
public array
# getTopMaps( string $action = 'kills', integer $mapCount = 5 )

Returns and array of top maps for the selected action.

Returns and array of top maps for the selected action.

Parameters

$action
string
$action Accepted values are 'kills | teamkills | suicides'. Default is 'kills'
$mapCount
integer
$mapCount number of maps to be returned. Default is 5

Returns

array

Methods inherited from AppController

beforeFilter(), beforeRender(), checkAuthorization(), checkCaching(), checkLicense(), getDatabaseId(), getServerGroupId(), getServerName(), getSubdomain(), getUserData(), isAuthorized(), loadB3Servers(), loadConfigOptions(), loadGameConfig(), loadServerConfigOptions()

Magic methods summary

Properties summary

public array $uses
#
public array $components
#

Components

Components

public array $helpers
#

Helpers

Helpers

Properties inherited from AppController

$user

XLRstats v3 - League Edition API documentation generated by ApiGen 2.8.0