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 PlayerMapsController

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 PlayerMapsController
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 PlayerMapsController.php

Methods summary

public
# view( integer $playerID = null )

Displays player's maps via dataTables.

Displays player's maps via dataTables.

Parameters

$playerID
integer
$playerID is passed to the dataTable script's "sAjaxSource".
public mixed
# playerMapsJson( null $playerID = null )

Queries player maps and pass data to view file json/player_maps_json.ctp to be processed by dataTables.

Queries player maps and pass data to view file json/player_maps_json.ctp to be processed by dataTables.

Sample data returned: Array ( [sEcho] => 1 [iTotalRecords] => 3777 [iTotalDisplayRecords] => 17 [aaData] => Array ( [0] => Array ( [0] => pos# //position number [1] => MP001 //map name [2] => 314 //kills [3] => 165 //deaths [4] => 4 //teamkills [5] => 1 //teamdeaths [6] => 3 //suicides [7] => 19 //map id ) ) )

Parameters

$playerID
null
$playerID player id

Returns

mixed
public array
# getPlayerTopMaps( null $playerID = null, string $action = 'kills', integer $mapCount = 5 )

Returns and array of top player maps for the selected action.

Returns and array of top player maps for the selected action.

Parameters

$playerID
null
$playerID
$action
string
$action Accepted values are 'kills | deaths | teamkills | teamdeaths | suicides'. Default is 'kills'
$mapCount
integer
$mapCount number of weapons 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 $helpers
#

Helpers

Helpers

public array $components
#

Components

Components

public array $uses
#

Models

Models

Properties inherited from AppController

$user

XLRstats v3 - League Edition API documentation generated by ApiGen 2.8.0