maplist optimations

This commit is contained in:
kremsy
2014-01-15 18:31:06 +01:00
committed by Steffen Schröder
parent ae80995be6
commit 7fa6a0beda
2 changed files with 83 additions and 6 deletions

View File

@ -89,11 +89,20 @@ class ManiaExchangeManager {
$saveMapStatement->close();
}
/**
* Fetch Map Information from Mania Exchange
* @param null $map
*/
public function fetchManiaExchangeMapInformations() {
$maps = $this->maniaControl->mapManager->getMaps();
public function fetchManiaExchangeMapInformations($map = null) {
if(!$map){
//Fetch Informations for whole Maplist
$maps = $this->maniaControl->mapManager->getMaps();
}else{
//Fetch Information for a single map
$maps[] = $map;
}
$mysqli = $this->maniaControl->database->mysqli;
$mapIdString = '';