specified some maphandler todos
This commit is contained in:
		| @@ -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; | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user