Class XlrfunctionsHelper
- Helper
- XlrfunctionsHelper
License: Commons BY-NC-SA 3.0 License (http://creativecommons.org/licenses/by-nc-sa/3.0/)
Located at Helper/XlrFunctionsHelper.php
Methods summary
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
array
|
#
getCarouselImages( )
Returns an array of images for the selected game from 'webroot/img/carousel' folder. |
public
string
|
#
getWeaponName( mixed $weapon = null )
Returns easy weapon name from the game config file. If an easy name is not defined for the weapon, then it returns the console name. |
public
boolean
|
#
getWeaponImage( mixed $weapon, array $options = array() )
Returns weapon image based on data in game config file |
public
boolean
|
|
public
boolean
|
|
public
string
|
#
getMapName( mixed $map )
Returns easy map name from the game config file. If an easy name is not defined for the map, then it returns the console name. |
public
boolean
|
#
getMapImage( mixed $map, array $options = array() )
Returns map image based on data in game config file |
public
boolean
|
|
public
boolean
|
|
public
string
|
#
getTeamName( mixed $team )
Returns easy team name from the game config file. If an easy name is not defined for the map, then it returns the console name. |
public
array
|
#
getBodyPartName( mixed $bodyPart )
Returns fixed name and easy name for body part from game config file. |
public
string
|
#
colorizeHitZone( mixed $percentage )
Returns a color to be displayed on hit zone markers based on the percentage value |
public
array|boolean
|
#
getPopulatedLeagueVars( )
This function returns useful data to display the league boxes for only populated leagues on homepage |
public
string
|
#
getTopActionData( array $topActions = array(), mixed $bestAction, string $option = 'weapon' )
Returns a JSON formatted list of best weapons or maps to be used in pie charts in player's weapon and map tabs. |
public
mixed
|
|
public
string
|
|
public
string
|
|
public
string
|
#
sanitizeMe( mixed $str )
Sanitation function for displaying database content in html http://www.php.net/manual/en/function.htmlentities.php |
Magic methods summary
Properties summary
public
array
|
$helpers |