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 ServerInfoController

Class ServerInfoController

Controller
Extended by AppController
Extended by ServerInfoController
Package: app\Controller
License: Commons BY-NC-SA 3.0 License (http://creativecommons.org/licenses/by-nc-sa/3.0/)
Located at ServerInfoController.php

Methods summary

public array
# getServerInfo( mixed $serverID )

Fetches server info from status xml if a xml status path/url is specified, otherwise from B3 database and stores real server names in XLRstats database.

Fetches server info from status xml if a xml status path/url is specified, otherwise from B3 database and stores real server names in XLRstats database.

Parameters

$serverID
mixed
$serverID

Returns

array

Throws

NotFoundException
public array
# index( integer $id = null )

Returns required information to display in server info block.

Returns required information to display in server info block.

Parameters

$id
integer
$id can be used to get server info for a specific server

Returns

array

Throws

NotFoundException
public array
# prepareArray( )

Setup an array with all values that the webfront will look for. Set a default value to avoid errors.

Setup an array with all values that the webfront will look for. Set a default value to avoid errors.

Returns

array
public array
# parseTable( )

Parse serverInfo from table

Parse serverInfo from table

Returns

array
public array
# parseXML( )

Parse serverInfo from status.xml file

Parse serverInfo from status.xml file

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
#

Used Models

Used Models

public array $helpers
#

Helpers

Helpers

public array $components
#

Components

Components

public array $xmlItem
#

Local variables

Local variables

public null $serverID
#

ServerID

ServerID

Properties inherited from AppController

$user

XLRstats v3 - League Edition API documentation generated by ApiGen 2.8.0