finished updatecommand

This commit is contained in:
kremsy
2014-01-15 20:40:14 +01:00
committed by Steffen Schröder
parent 7fa6a0beda
commit ffe3e0d2ef
4 changed files with 76 additions and 19 deletions

View File

@ -89,16 +89,25 @@ class ManiaExchangeManager {
$saveMapStatement->close();
}
/**
* Unset Map by Mx Id
*
* @param $mxId
*/
public function unsetMap($mxId) {
unset($this->mxIdUidVector[$mxId]);
}
/**
* Fetch Map Information from Mania Exchange
*
* @param null $map
*/
public function fetchManiaExchangeMapInformations($map = null) {
if(!$map){
if(!$map) {
//Fetch Informations for whole Maplist
$maps = $this->maniaControl->mapManager->getMaps();
}else{
$maps = $this->maniaControl->mapManager->getMaps();
} else {
//Fetch Information for a single map
$maps[] = $map;
}