@@ -45,13 +45,13 @@ discard block |
||
45 | 45 | return $systems; |
46 | 46 | } |
47 | 47 | |
48 | - /** |
|
49 | - * Get the progress system for a game |
|
50 | - * |
|
51 | - * @param integer Game ID |
|
52 | - * |
|
53 | - * @return progress system of the game |
|
54 | - */ |
|
48 | + /** |
|
49 | + * Get the progress system for a game |
|
50 | + * |
|
51 | + * @param integer Game ID |
|
52 | + * |
|
53 | + * @return progress system of the game |
|
54 | + */ |
|
55 | 55 | public function getProgressSystemForGame($game_id) { |
56 | 56 | $stmt = \AL\Db\execute_query( |
57 | 57 | "GameProgressSystemDAO: getProgressSystemForGame", |
@@ -101,10 +101,10 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | /** |
104 | - * add a progres system to the database |
|
105 | - * |
|
106 | - * @param varchar name |
|
107 | - */ |
|
104 | + * add a progres system to the database |
|
105 | + * |
|
106 | + * @param varchar name |
|
107 | + */ |
|
108 | 108 | public function addProgressSystem($name) { |
109 | 109 | $stmt = \AL\Db\execute_query( |
110 | 110 | "GameProgressSystemDAO: addProgressSystem", |
@@ -133,11 +133,11 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * update a progress system |
|
137 | - * |
|
138 | - * @param int progress_system_id |
|
139 | - * @param varchar name |
|
140 | - */ |
|
136 | + * update a progress system |
|
137 | + * |
|
138 | + * @param int progress_system_id |
|
139 | + * @param varchar name |
|
140 | + */ |
|
141 | 141 | public function updateProgressSystem($progress_system_id, $name) { |
142 | 142 | $stmt = \AL\Db\execute_query( |
143 | 143 | "GameProgressSystemDAO: updateProgressSystem", |
@@ -16,7 +16,6 @@ discard block |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Get all Sound Hardware Types |
19 | - |
|
20 | 19 | * @return \AL\Common\Model\Game\SoundHardware[] An array of SoundHardware types |
21 | 20 | */ |
22 | 21 | public function getAllSoundHardware() { |
@@ -79,13 +78,13 @@ discard block |
||
79 | 78 | return $sound_hardware_types; |
80 | 79 | } |
81 | 80 | |
82 | - /** |
|
83 | - * Add sound hardware to game |
|
84 | - * |
|
85 | - * @param integer Game ID |
|
86 | - * @param integer hardware ID |
|
87 | - * $param text description |
|
88 | - */ |
|
81 | + /** |
|
82 | + * Add sound hardware to game |
|
83 | + * |
|
84 | + * @param integer Game ID |
|
85 | + * @param integer hardware ID |
|
86 | + * $param text description |
|
87 | + */ |
|
89 | 88 | public function addSoundHardwareToGame($game_id, $hardware_id) { |
90 | 89 | |
91 | 90 | $stmt = \AL\Db\execute_query( |
@@ -98,12 +97,12 @@ discard block |
||
98 | 97 | $stmt->close(); |
99 | 98 | } |
100 | 99 | |
101 | - /** |
|
102 | - * Delete sound hardware from game |
|
103 | - * |
|
104 | - * @param integer Game ID |
|
105 | - * @param integer hardware ID |
|
106 | - */ |
|
100 | + /** |
|
101 | + * Delete sound hardware from game |
|
102 | + * |
|
103 | + * @param integer Game ID |
|
104 | + * @param integer hardware ID |
|
105 | + */ |
|
107 | 106 | public function deleteSoundHardwareFromGame($game_id, $hardware_id) { |
108 | 107 | $stmt = \AL\Db\execute_query( |
109 | 108 | "SoundHardwareDAO: deleteSoundHardwareFromGame", |
@@ -116,11 +115,11 @@ discard block |
||
116 | 115 | $stmt->close(); |
117 | 116 | } |
118 | 117 | |
119 | - /** |
|
120 | - * add a sound hardware type to the database |
|
121 | - * |
|
122 | - * @param varchar sound hardware type |
|
123 | - */ |
|
118 | + /** |
|
119 | + * add a sound hardware type to the database |
|
120 | + * |
|
121 | + * @param varchar sound hardware type |
|
122 | + */ |
|
124 | 123 | public function addSoundHardware($sound_hardware) { |
125 | 124 | $stmt = \AL\Db\execute_query( |
126 | 125 | "SoundHardwareDAO: addSoundHardware", |
@@ -149,11 +148,11 @@ discard block |
||
149 | 148 | } |
150 | 149 | |
151 | 150 | /** |
152 | - * update a sound hardware |
|
153 | - * |
|
154 | - * @param int sound_hardware_id |
|
155 | - * @param varchar sound_hardware |
|
156 | - */ |
|
151 | + * update a sound hardware |
|
152 | + * |
|
153 | + * @param int sound_hardware_id |
|
154 | + * @param varchar sound_hardware |
|
155 | + */ |
|
157 | 156 | public function updateSoundHardware($sound_hardware_id, $sound_hardware) { |
158 | 157 | $stmt = \AL\Db\execute_query( |
159 | 158 | "SoundHardwareDAO: updateSoundHardware", |
@@ -78,11 +78,11 @@ |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * update a Enhancement |
|
82 | - * |
|
83 | - * @param int Enhancement_id |
|
84 | - * @param varchar Enhancement_name |
|
85 | - */ |
|
81 | + * update a Enhancement |
|
82 | + * |
|
83 | + * @param int Enhancement_id |
|
84 | + * @param varchar Enhancement_name |
|
85 | + */ |
|
86 | 86 | public function updateEnhancement($enhancement_id, $enhancement_name) { |
87 | 87 | $stmt = \AL\Db\execute_query( |
88 | 88 | "EnhancementDAO: updateEnhancement", |
@@ -78,12 +78,12 @@ discard block |
||
78 | 78 | return $game_engines; |
79 | 79 | } |
80 | 80 | |
81 | - /** |
|
82 | - * Set the list of game engines for this game |
|
83 | - * |
|
84 | - * @param integer Game ID |
|
85 | - * @param integer[] List of game genre IDs |
|
86 | - */ |
|
81 | + /** |
|
82 | + * Set the list of game engines for this game |
|
83 | + * |
|
84 | + * @param integer Game ID |
|
85 | + * @param integer[] List of game genre IDs |
|
86 | + */ |
|
87 | 87 | public function setGameEngineForGame($game_id, $game_engine_id) { |
88 | 88 | $stmt = \AL\Db\execute_query( |
89 | 89 | "EngineDAO: setGameEngineForGame", |
@@ -137,11 +137,11 @@ discard block |
||
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
140 | - * update a game engine type |
|
141 | - * |
|
142 | - * @param int Engine_id |
|
143 | - * @param varchar Engine_name |
|
144 | - */ |
|
140 | + * update a game engine type |
|
141 | + * |
|
142 | + * @param int Engine_id |
|
143 | + * @param varchar Engine_name |
|
144 | + */ |
|
145 | 145 | public function updateGameEngine($engine_id, $engine_name) { |
146 | 146 | $stmt = \AL\Db\execute_query( |
147 | 147 | "EngineDAO: updateGameEngine", |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * Return all news submissions, sorted by descending date |
|
54 | - * @return \AL\Common\Model\News\News[] An array of news |
|
55 | - */ |
|
53 | + * Return all news submissions, sorted by descending date |
|
54 | + * @return \AL\Common\Model\News\News[] An array of news |
|
55 | + */ |
|
56 | 56 | public function getAllSubmissions() { |
57 | 57 | $stmt = \AL\Db\execute_query( |
58 | 58 | "NewsSubmissionDAO: getAllSubmissions", |
@@ -112,9 +112,9 @@ discard block |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
115 | - * Return all news submissions, sorted by descending date |
|
116 | - * @return \AL\Common\Model\News\News[] An array of news |
|
117 | - */ |
|
115 | + * Return all news submissions, sorted by descending date |
|
116 | + * @return \AL\Common\Model\News\News[] An array of news |
|
117 | + */ |
|
118 | 118 | public function getAllSubmissionsForUser($user_id) { |
119 | 119 | $stmt = \AL\Db\execute_query( |
120 | 120 | "NewsSubmissionDAO: getAllSubmissions", |
@@ -175,9 +175,9 @@ discard block |
||
175 | 175 | |
176 | 176 | |
177 | 177 | /** |
178 | - * Return a specific news submissions |
|
179 | - * @return \AL\Common\Model\News\News[] An array of news |
|
180 | - */ |
|
178 | + * Return a specific news submissions |
|
179 | + * @return \AL\Common\Model\News\News[] An array of news |
|
180 | + */ |
|
181 | 181 | public function getSpecificSubmissions($news_id) { |
182 | 182 | $stmt = \AL\Db\execute_query( |
183 | 183 | "NewsSubmissionDAO: getSpecificSubmissions", |
@@ -260,10 +260,10 @@ discard block |
||
260 | 260 | } |
261 | 261 | |
262 | 262 | /** |
263 | - * Get the total count of comments on the website |
|
264 | - * |
|
265 | - * @param integer $user_id Optional ID of a user to count comments for |
|
266 | - * @return integer Number of comments */ |
|
263 | + * Get the total count of comments on the website |
|
264 | + * |
|
265 | + * @param integer $user_id Optional ID of a user to count comments for |
|
266 | + * @return integer Number of comments */ |
|
267 | 267 | public function getSubmissionCount($user_id = null) { |
268 | 268 | if (isset($user_id)) { |
269 | 269 | $stmt = \AL\Db\execute_query( |
@@ -296,11 +296,11 @@ discard block |
||
296 | 296 | } |
297 | 297 | |
298 | 298 | /** |
299 | - * Get the comment text for a specific comment |
|
300 | - * |
|
301 | - * @param integer $comments_id ID of a comment |
|
302 | - * @return text the text of the comment |
|
303 | - */ |
|
299 | + * Get the comment text for a specific comment |
|
300 | + * |
|
301 | + * @param integer $comments_id ID of a comment |
|
302 | + * @return text the text of the comment |
|
303 | + */ |
|
304 | 304 | public function getNewsText($news_id = null) { |
305 | 305 | if (isset($news_id)) { |
306 | 306 | $stmt = \AL\Db\execute_query( |
@@ -45,13 +45,13 @@ discard block |
||
45 | 45 | return $ports; |
46 | 46 | } |
47 | 47 | |
48 | - /** |
|
49 | - * Get the game port for a game |
|
50 | - * |
|
51 | - * @param integer Game ID |
|
52 | - * |
|
53 | - * @return Port system of the game |
|
54 | - */ |
|
48 | + /** |
|
49 | + * Get the game port for a game |
|
50 | + * |
|
51 | + * @param integer Game ID |
|
52 | + * |
|
53 | + * @return Port system of the game |
|
54 | + */ |
|
55 | 55 | public function getPortForGame($game_id) { |
56 | 56 | $stmt = \AL\Db\execute_query( |
57 | 57 | "PortDAO: getPortForGame", |
@@ -101,10 +101,10 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | /** |
104 | - * add a port to the database |
|
105 | - * |
|
106 | - * @param varchar port |
|
107 | - */ |
|
104 | + * add a port to the database |
|
105 | + * |
|
106 | + * @param varchar port |
|
107 | + */ |
|
108 | 108 | public function addPort($port) { |
109 | 109 | $stmt = \AL\Db\execute_query( |
110 | 110 | "PortDAO: addPort", |
@@ -133,11 +133,11 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * update a port |
|
137 | - * |
|
138 | - * @param int port_id |
|
139 | - * @param varchar port_name |
|
140 | - */ |
|
136 | + * update a port |
|
137 | + * |
|
138 | + * @param int port_id |
|
139 | + * @param varchar port_name |
|
140 | + */ |
|
141 | 141 | public function updatePort($port_id, $port_name) { |
142 | 142 | $stmt = \AL\Db\execute_query( |
143 | 143 | "PortDAO: updatePort", |
@@ -102,12 +102,12 @@ discard block |
||
102 | 102 | $stmt->close(); |
103 | 103 | } |
104 | 104 | |
105 | - /** |
|
106 | - * Update enhancement for memory |
|
107 | - * |
|
108 | - * @param integer Game Release ID |
|
109 | - * @param integer memory ID |
|
110 | - */ |
|
105 | + /** |
|
106 | + * Update enhancement for memory |
|
107 | + * |
|
108 | + * @param integer Game Release ID |
|
109 | + * @param integer memory ID |
|
110 | + */ |
|
111 | 111 | public function updateMemoryForRelease($game_release_id, $memory_id, $enhancement_id) { |
112 | 112 | $stmt = \AL\Db\execute_query( |
113 | 113 | "MemoryDAO: UpdateMemoryForRelease", |
@@ -123,12 +123,12 @@ discard block |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | |
126 | - /** |
|
127 | - * Delete Memory enhancement for release |
|
128 | - * |
|
129 | - * @param integer Game Release ID |
|
130 | - * @param integer memory ID |
|
131 | - */ |
|
126 | + /** |
|
127 | + * Delete Memory enhancement for release |
|
128 | + * |
|
129 | + * @param integer Game Release ID |
|
130 | + * @param integer memory ID |
|
131 | + */ |
|
132 | 132 | public function deleteMemoryForRelease($game_release_id, $memory_id) { |
133 | 133 | $stmt = \AL\Db\execute_query( |
134 | 134 | "MemoryDAO: DeleteMemoryForRelease", |
@@ -193,12 +193,12 @@ discard block |
||
193 | 193 | $stmt->close(); |
194 | 194 | } |
195 | 195 | |
196 | - /** |
|
197 | - * Delete minimum memory for release |
|
198 | - * |
|
199 | - * @param integer Game Release ID |
|
200 | - * @param integer memory ID |
|
201 | - */ |
|
196 | + /** |
|
197 | + * Delete minimum memory for release |
|
198 | + * |
|
199 | + * @param integer Game Release ID |
|
200 | + * @param integer memory ID |
|
201 | + */ |
|
202 | 202 | public function deleteMinimumMemoryForRelease($game_release_id, $memory_id) { |
203 | 203 | $stmt = \AL\Db\execute_query( |
204 | 204 | "MemoryDAO: deleteMinimumMemoryForRelease", |
@@ -211,11 +211,11 @@ discard block |
||
211 | 211 | $stmt->close(); |
212 | 212 | } |
213 | 213 | |
214 | - /** |
|
215 | - * Get list of incompatible memory IDs for a game release |
|
216 | - * |
|
217 | - * @param integer release ID |
|
218 | - */ |
|
214 | + /** |
|
215 | + * Get list of incompatible memory IDs for a game release |
|
216 | + * |
|
217 | + * @param integer release ID |
|
218 | + */ |
|
219 | 219 | public function getMemoryIncompatibleForRelease($release_id) { |
220 | 220 | $stmt = \AL\Db\execute_query( |
221 | 221 | "MemoryDAO: getMemoryIncompatibleForRelease", |
@@ -263,12 +263,12 @@ discard block |
||
263 | 263 | $stmt->close(); |
264 | 264 | } |
265 | 265 | |
266 | - /** |
|
267 | - * Delete incompatible memory for release |
|
268 | - * |
|
269 | - * @param integer Game Release ID |
|
270 | - * @param integer memory ID |
|
271 | - */ |
|
266 | + /** |
|
267 | + * Delete incompatible memory for release |
|
268 | + * |
|
269 | + * @param integer Game Release ID |
|
270 | + * @param integer memory ID |
|
271 | + */ |
|
272 | 272 | public function deleteMemoryIncompatibleForRelease($game_release_id, $memory_id) { |
273 | 273 | $stmt = \AL\Db\execute_query( |
274 | 274 | "MemoryDAO: deleteMemoryIncompatibleForRelease", |
@@ -281,11 +281,11 @@ discard block |
||
281 | 281 | $stmt->close(); |
282 | 282 | } |
283 | 283 | |
284 | - /** |
|
285 | - * add a memory amount to the database |
|
286 | - * |
|
287 | - * @param varchar memory |
|
288 | - */ |
|
284 | + /** |
|
285 | + * add a memory amount to the database |
|
286 | + * |
|
287 | + * @param varchar memory |
|
288 | + */ |
|
289 | 289 | public function addMemory($memory) { |
290 | 290 | $stmt = \AL\Db\execute_query( |
291 | 291 | "MemoryDAO: addMemory", |
@@ -314,11 +314,11 @@ discard block |
||
314 | 314 | } |
315 | 315 | |
316 | 316 | /** |
317 | - * update a memory amount |
|
318 | - * |
|
319 | - * @param int memory_id |
|
320 | - * @param varchar memory_memory |
|
321 | - */ |
|
317 | + * update a memory amount |
|
318 | + * |
|
319 | + * @param int memory_id |
|
320 | + * @param varchar memory_memory |
|
321 | + */ |
|
322 | 322 | public function updateMemory($memory_id, $memory) { |
323 | 323 | $stmt = \AL\Db\execute_query( |
324 | 324 | "MemoryDAO: updateMemory", |
@@ -51,12 +51,12 @@ discard block |
||
51 | 51 | return $media; |
52 | 52 | } |
53 | 53 | |
54 | - /** |
|
55 | - * Add a media to a release |
|
56 | - * |
|
57 | - * @param int release_id |
|
58 | - * @param int media_type_id |
|
59 | - */ |
|
54 | + /** |
|
55 | + * Add a media to a release |
|
56 | + * |
|
57 | + * @param int release_id |
|
58 | + * @param int media_type_id |
|
59 | + */ |
|
60 | 60 | public function addMediaToRelease($release_id, $type_id, $label) { |
61 | 61 | $stmt = \AL\Db\execute_query( |
62 | 62 | "MediaDAO: AddMediaToRelease", |
@@ -68,11 +68,11 @@ discard block |
||
68 | 68 | $stmt->close(); |
69 | 69 | } |
70 | 70 | |
71 | - /** |
|
72 | - * delete a media from a release |
|
73 | - * |
|
74 | - * @param int media_id |
|
75 | - */ |
|
71 | + /** |
|
72 | + * delete a media from a release |
|
73 | + * |
|
74 | + * @param int media_id |
|
75 | + */ |
|
76 | 76 | public function deleteMediaFromRelease($media_id) { |
77 | 77 | $stmt = \AL\Db\execute_query( |
78 | 78 | "MediaDAO: deleteMediaToRelease", |
@@ -84,12 +84,12 @@ discard block |
||
84 | 84 | $stmt->close(); |
85 | 85 | } |
86 | 86 | |
87 | - /** |
|
88 | - * update a media label |
|
89 | - * |
|
90 | - * @param int media_id |
|
91 | - * @param varchar label |
|
92 | - */ |
|
87 | + /** |
|
88 | + * update a media label |
|
89 | + * |
|
90 | + * @param int media_id |
|
91 | + * @param varchar label |
|
92 | + */ |
|
93 | 93 | public function updateMedia($media_id, $label, $media_type_id) { |
94 | 94 | $stmt = \AL\Db\execute_query( |
95 | 95 | "MediaDAO: setLabelFromMedia", |
@@ -126,12 +126,12 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | |
129 | - /** |
|
130 | - * Get all emulator IDs incompatible with a release |
|
131 | - * |
|
132 | - * @param integer Release ID |
|
133 | - * @return integer[] List of incompatible emulator IDs |
|
134 | - */ |
|
129 | + /** |
|
130 | + * Get all emulator IDs incompatible with a release |
|
131 | + * |
|
132 | + * @param integer Release ID |
|
133 | + * @return integer[] List of incompatible emulator IDs |
|
134 | + */ |
|
135 | 135 | public function getIncompatibleEmulatorsWithNameForRelease($release_id) { |
136 | 136 | $stmt = \AL\Db\execute_query( |
137 | 137 | "EmulatorDAO: getIncompatibleEmulatorIdsForRelease", |
@@ -186,10 +186,10 @@ discard block |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
189 | - * add a emulator to the database |
|
190 | - * |
|
191 | - * @param varchar emulator |
|
192 | - */ |
|
189 | + * add a emulator to the database |
|
190 | + * |
|
191 | + * @param varchar emulator |
|
192 | + */ |
|
193 | 193 | public function addEmulator($emulator) { |
194 | 194 | $stmt = \AL\Db\execute_query( |
195 | 195 | "EmulatorDAO: addEmulator", |
@@ -218,11 +218,11 @@ discard block |
||
218 | 218 | } |
219 | 219 | |
220 | 220 | /** |
221 | - * update a emulator |
|
222 | - * |
|
223 | - * @param int emulator_id |
|
224 | - * @param varchar emulator_name |
|
225 | - */ |
|
221 | + * update a emulator |
|
222 | + * |
|
223 | + * @param int emulator_id |
|
224 | + * @param varchar emulator_name |
|
225 | + */ |
|
226 | 226 | public function updateEmulator($emulator_id, $emulator_name) { |
227 | 227 | $stmt = \AL\Db\execute_query( |
228 | 228 | "EmulatorDAO: updateEmulator", |