started own mxinfosearcher

This commit is contained in:
kremsy
2014-01-08 21:03:59 +01:00
parent 9d930ac85b
commit 132fa4cf01
5 changed files with 120 additions and 4 deletions

View File

@ -120,6 +120,8 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$recent = false;
}
$this->maniaControl->mapManager->mxInfoSearcher->getList('');
// search for matching maps
$maps = new MXInfoSearcher($title, $searchString, $author, $environment, $recent);

View File

@ -31,6 +31,7 @@ class MapManager implements CallbackListener {
public $mapQueue = null;
public $mapCommands = null;
public $mapList = null;
public $mxInfoSearcher = null;
/**
* Private Properties
@ -50,9 +51,10 @@ class MapManager implements CallbackListener {
$this->initTables();
// Create map commands instance
$this->mapList = new MapList($this->maniaControl);
$this->mapCommands = new MapCommands($maniaControl);
$this->mapQueue = new MapQueue($this->maniaControl);
$this->mapList = new MapList($this->maniaControl);
$this->mapCommands = new MapCommands($maniaControl);
$this->mapQueue = new MapQueue($this->maniaControl);
$this->mxInfoSearcher = new ManiaExchangeInfoSearcher($this->maniaControl);
// Register for callbacks
$this->maniaControl->callbackManager->registerCallbackListener(CallbackManager::CB_MC_ONINIT, $this, 'handleOnInit');