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 WeaponStatsController

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

Methods summary

public
# index( )

Displays a list of weapons

Displays a list of weapons

public mixed
# weaponStatsJson( )

Queries all weapon stats and pass data to view file app/View/WeaponStats/json/weapons_json.ctp to be processed by dataTables.

Queries all weapon stats and pass data to view file app/View/WeaponStats/json/weapons_json.ctp to be processed by dataTables.

Sample data returned: Array ( [sEcho] => 1 [iTotalRecords] => 93 [iTotalDisplayRecords] => 93 [aaData] => Array ( [0] => Array ( [0] => pos# //position [1] => M16A4 //weapon name [2] => 3314 //kills [3] => 90 //team kills [4] => 12 //suicides [5] => 1 //weapon id ) [1] => Array ( [0] => pos# [1] => Weapons/AK74M/AK74 [2] => 1519 [3] => 55 [4] => 29 [0] => 2 ) ) )

Returns

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

Displays statistics of a specific weapon

Displays statistics of a specific weapon

Parameters

$weaponID
null
$weaponID

Returns

array
public array
# getTopWeapons( string $action = 'kills', integer $weaponCount = 5 )

Returns and array of top weapons for the selected action.

Returns and array of top weapons for the selected action.

Parameters

$action
string
$action Accepted values are 'kills | teamkills | 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 $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