Constants

SEARCH_ORDER_NONE

SEARCH_ORDER_NONE

SEARCH_ORDER_TRACK_NAME

SEARCH_ORDER_TRACK_NAME

SEARCH_ORDER_AUTHOR

SEARCH_ORDER_AUTHOR

SEARCH_ORDER_UPLOADED_NEWEST

SEARCH_ORDER_UPLOADED_NEWEST

SEARCH_ORDER_UPLOADED_OLDEST

SEARCH_ORDER_UPLOADED_OLDEST

SEARCH_ORDER_UPDATED_NEWEST

SEARCH_ORDER_UPDATED_NEWEST

SEARCH_ORDER_UPDATED_OLDEST

SEARCH_ORDER_UPDATED_OLDEST

SEARCH_ORDER_ACTIVITY_LATEST

SEARCH_ORDER_ACTIVITY_LATEST

SEARCH_ORDER_ACTIVITY_OLDEST

SEARCH_ORDER_ACTIVITY_OLDEST

SEARCH_ORDER_AWARDS_MOST

SEARCH_ORDER_AWARDS_MOST

SEARCH_ORDER_AWARDS_LEAST

SEARCH_ORDER_AWARDS_LEAST

SEARCH_ORDER_COMMENTS_MOST

SEARCH_ORDER_COMMENTS_MOST

SEARCH_ORDER_COMMENTS_LEAST

SEARCH_ORDER_COMMENTS_LEAST

SEARCH_ORDER_DIFFICULTY_EASIEST

SEARCH_ORDER_DIFFICULTY_EASIEST

SEARCH_ORDER_DIFFICULTY_HARDEST

SEARCH_ORDER_DIFFICULTY_HARDEST

SEARCH_ORDER_LENGTH_SHORTEST

SEARCH_ORDER_LENGTH_SHORTEST

SEARCH_ORDER_LENGTH_LONGEST

SEARCH_ORDER_LENGTH_LONGEST

MAPS_PER_MX_FETCH

MAPS_PER_MX_FETCH

MIN_EXE_BUILD

MIN_EXE_BUILD

SETTING_MX_KEY

SETTING_MX_KEY

Properties

$mxIdUidVector

$mxIdUidVector : 

Type

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct map manager

Parameters

\ManiaControl\ManiaControl $maniaControl

unsetMap()

unsetMap(integer  $mxId) 

Unset Map by Mx Id

Parameters

integer $mxId

fetchManiaExchangeMapInformation()

fetchManiaExchangeMapInformation(mixed  $maps = null) 

Fetch Map Information from Mania Exchange

Parameters

mixed $maps

fetchMaplistByMixedUidIdString()

fetchMaplistByMixedUidIdString(string  $string) 

Fetch the whole Map List from MX via mixed Uid and Id Strings

Parameters

string $string

updateMapObjectsWithManiaExchangeIds()

updateMapObjectsWithManiaExchangeIds(array  $mxMapInfos) 

Store MX Map Info in the Database and the MX Info in the Map Object

Parameters

array $mxMapInfos

getMaplistByMixedUidIdString()

getMaplistByMixedUidIdString(  $string) 

Parameters

$string

fetchMapInfo()

fetchMapInfo(integer  $mapId, callable  $function) 

Fetch Map Info asynchronously

Parameters

integer $mapId
callable $function

getMapsAsync()

getMapsAsync(callable  $function,   $name = '',   $author = '',   $env = '',   $maxMapsReturned = 100,   $searchOrder = \ManiaControl\ManiaExchange\ManiaExchangeMapSearch::SEARCH_ORDER_UPDATED_NEWEST) 

Parameters

callable $function
$name
$author
$env
$maxMapsReturned
$searchOrder

fetchMapsAsync()

fetchMapsAsync(callable  $function, string  $name = '', string  $author = '', string  $env = '', integer  $maxMapsReturned = 100,   $sortOrder = \ManiaControl\ManiaExchange\ManiaExchangeMapSearch::SEARCH_ORDER_UPDATED_NEWEST) 

Fetch a MapList Asynchronously

Parameters

callable $function
string $name
string $author
string $env
integer $maxMapsReturned
$sortOrder

getEnvironment()

getEnvironment(string  $env) : integer

Get the Current Environment by String

Parameters

string $env

Returns

integer