some minor things

This commit is contained in:
kremsy
2013-11-10 19:50:24 +01:00
parent 5a7246a791
commit 07c009bea0
3 changed files with 57 additions and 55 deletions

View File

@ -10,13 +10,12 @@ namespace ManiaControl;
class mapHandler {
/**
/**
* Private properties
*/
private $maniaControl = null;
private $mapList = array();
/**
* Construct map handler
* @param ManiaControl $maniaControl
@ -53,6 +52,8 @@ class mapHandler {
* @param array $callback
*/
public function onInit(){
$this->maniaControl->client->query('GetMapList', 300, 0);
$mapList = $this->maniaControl->client->getResponse();
foreach ($mapList as $map) {