specified some maphandler todos

This commit is contained in:
kremsy 2013-11-11 18:45:15 +01:00
parent ac1479c2df
commit 348db3602a

View File

@ -41,7 +41,7 @@ class mapHandler {
* @return bool * @return bool
*/ */
private function initTables() { private function initTables() {
//TODO: Initialize database table
} }
@ -52,8 +52,6 @@ class mapHandler {
* @param array $callback * @param array $callback
*/ */
public function onInit(){ public function onInit(){
$this->maniaControl->client->query('GetMapList', 300, 0); $this->maniaControl->client->query('GetMapList', 300, 0);
$mapList = $this->maniaControl->client->getResponse(); $mapList = $this->maniaControl->client->getResponse();
foreach ($mapList as $map) { foreach ($mapList as $map) {
@ -69,6 +67,7 @@ class mapHandler {
* @return bool * @return bool
*/ */
private function addMap(Map $map) { private function addMap(Map $map) {
//TODO: ADD Maps to database
if (!$map) { if (!$map) {
return false; return false;
} }