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 PenaltiesController

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

Methods summary

public
# index( )

Displays all penalties via dataTables.

Displays all penalties via dataTables.

public array|null
# detail( null $id = null )

Returns details of a penalty

Returns details of a penalty

Parameters

$id
null
$id

Returns

array|null
public null
# view( integer $playerID = null )

Displays player specific penalties via dataTables.

Displays player specific penalties via dataTables.

Parameters

$playerID
integer
$playerID is passed to the dataTable script's "sAjaxSource".

Returns

null
public mixed
# penaltiesIndexJson( )

Queries all penalties and pass data to view file json/penalties_index_json.ctp to be processed by dataTables.

Queries all penalties and pass data to view file json/penalties_index_json.ctp to be processed by dataTables.

Sample data returned: Array ( [sEcho] => 1 [iTotalRecords] => 394 [iTotalDisplayRecords] => 222 [aaData] => Array ( [0] => Array ( [0] => pos# //position number [1] => Kick //type [2] => zBlaCkMoREz //client name [3] => 1319834046 //time add [4] => 0 //time expire [5] => makeroom //reason [6] => 0 //duration [7] => makeroom //keyword [8] => Freelander00 //admin [9] => //data [10] => 52 //client id [11] => 1319834046 //time edit [12] => 8 //penalty id ) ) )

Returns

mixed
public mixed
# penaltiesJson( null $playerID = null )

Queries penalties for a certain player and pass data to view file json/penalties_json.ctp to be processed by dataTables.

Queries penalties for a certain player and pass data to view file json/penalties_json.ctp to be processed by dataTables.

Sample data returned: Array ( [sEcho] => 1 [iTotalRecords] => 3222 [iTotalDisplayRecords] => 3 [aaData] => Array ( [0] => Array ( [0] => pos# //position number [1] => Warning //type [2] => ^7do not use commands that you do not have access to, try using !help //reason [3] => //data [4] => 1319997409 //time_add [5] => 1320001009 //time_expire [6] => nocmd //keyword [7] => 1319997409 //time_edit [8] => mikelegend87 //player name [9] => 23 //penalty id ) ) )

Parameters

$playerID
null
$playerID player id

Returns

mixed
public array
# wallOfShame( )

Returns players with most penalties

Returns players with most penalties

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
#

Models used

Models used

public array $helpers
#

Helpers

Helpers

public array $components
#

Components

Components

Properties inherited from AppController

$user

XLRstats v3 - League Edition API documentation generated by ApiGen 2.8.0