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 PlayerWeaponsController

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

Methods summary

public
# view( integer $playerID = null )

Displays player's weapons via dataTables.

Displays player's weapons via dataTables.

Parameters

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

Queries player weapons and pass data to view file app/View/PlayerWeapons/json/player_weapons_json.ctp to be processed by dataTables.

Queries player weapons and pass data to view file app/View/PlayerWeapons/json/player_weapons_json.ctp to be processed by dataTables.

Sample data returned: Array ( [sEcho] => 1 [iTotalRecords] => 13125 [iTotalDisplayRecords] => 83 [aaData] => Array ( [0] => Array ( [0] => pos# //position number [1] => SV98 //weapon name [2] => 13 //kills [3] => 19 //deaths [4] => 0 //teamkills [5] => 0 //teamdeaths [6] => 0 //suicides [7] => 34 //weapon id ) ) )

Parameters

$playerID
null
$playerID player id

Returns

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

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

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

Parameters

$playerID
null
$playerID
$action
string
$action Accepted values are 'kills | deaths | teamkills | teamdeaths | suicides'. Default is 'kills'
$weaponCount
integer
$weaponCount 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