@@ -79,13 +79,13 @@ discard block |
||
79 | 79 | return $disk_protection_types; |
80 | 80 | } |
81 | 81 | |
82 | - /** |
|
83 | - * Add diskProtection for release |
|
84 | - * |
|
85 | - * @param integer Game Release ID |
|
86 | - * @param integer protection ID |
|
87 | - * $param text note |
|
88 | - */ |
|
82 | + /** |
|
83 | + * Add diskProtection for release |
|
84 | + * |
|
85 | + * @param integer Game Release ID |
|
86 | + * @param integer protection ID |
|
87 | + * $param text note |
|
88 | + */ |
|
89 | 89 | public function addDiskProtectionForRelease($game_release_id, $protection_id, $note) { |
90 | 90 | |
91 | 91 | $stmt = \AL\Db\execute_query( |
@@ -98,12 +98,12 @@ discard block |
||
98 | 98 | $stmt->close(); |
99 | 99 | } |
100 | 100 | |
101 | - /** |
|
102 | - * Delete diskProtection for release |
|
103 | - * |
|
104 | - * @param integer Game Release ID |
|
105 | - * @param integer protection ID |
|
106 | - */ |
|
101 | + /** |
|
102 | + * Delete diskProtection for release |
|
103 | + * |
|
104 | + * @param integer Game Release ID |
|
105 | + * @param integer protection ID |
|
106 | + */ |
|
107 | 107 | public function deleteDiskProtectionForRelease($game_release_id, $protection_id) { |
108 | 108 | $stmt = \AL\Db\execute_query( |
109 | 109 | "diskProtectionDAO: deleteDiskProtectionForRelease", |
@@ -116,11 +116,11 @@ discard block |
||
116 | 116 | $stmt->close(); |
117 | 117 | } |
118 | 118 | |
119 | - /** |
|
120 | - * add a disk protection to the database |
|
121 | - * |
|
122 | - * @param varchar Disk_protection |
|
123 | - */ |
|
119 | + /** |
|
120 | + * add a disk protection to the database |
|
121 | + * |
|
122 | + * @param varchar Disk_protection |
|
123 | + */ |
|
124 | 124 | public function addDiskProtection($disk_protection) { |
125 | 125 | $stmt = \AL\Db\execute_query( |
126 | 126 | "diskProtectionDAO: addDiskProtection", |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | - * update a disk_protection |
|
153 | - * |
|
154 | - * @param int disk_protection_id |
|
155 | - * @param varchar disk_protection |
|
156 | - */ |
|
152 | + * update a disk_protection |
|
153 | + * |
|
154 | + * @param int disk_protection_id |
|
155 | + * @param varchar disk_protection |
|
156 | + */ |
|
157 | 157 | public function updateDiskProtection($disk_protection_id, $disk_protection_name) { |
158 | 158 | $stmt = \AL\Db\execute_query( |
159 | 159 | "diskProtectionDAO: updateDiskProtection", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/DiskProtection.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/DiskProtection.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Disk Protection |
@@ -105,11 +105,11 @@ discard block |
||
105 | 105 | $stmt->close(); |
106 | 106 | } |
107 | 107 | |
108 | - /** |
|
109 | - * add a trainer_option to the database |
|
110 | - * |
|
111 | - * @param varchar trainer_option |
|
112 | - */ |
|
108 | + /** |
|
109 | + * add a trainer_option to the database |
|
110 | + * |
|
111 | + * @param varchar trainer_option |
|
112 | + */ |
|
113 | 113 | public function addTrainerOption($trainer_option) { |
114 | 114 | $stmt = \AL\Db\execute_query( |
115 | 115 | "TrainerOptionDAO: addTrainerOption", |
@@ -138,11 +138,11 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
141 | - * update a trainer_option |
|
142 | - * |
|
143 | - * @param int trainer_option_id |
|
144 | - * @param varchar trainer_option_name |
|
145 | - */ |
|
141 | + * update a trainer_option |
|
142 | + * |
|
143 | + * @param int trainer_option_id |
|
144 | + * @param varchar trainer_option_name |
|
145 | + */ |
|
146 | 146 | public function updateTrainerOption($trainer_option_id, $trainer_option_name) { |
147 | 147 | $stmt = \AL\Db\execute_query( |
148 | 148 | "TrainerOptionDAO: updateTrainerOption", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/TrainerOption.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/TrainerOption.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Trainer Option |
@@ -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", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/GamePogressSystem.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/GamePogressSystem.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for GameProgressSystems |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/GameIndividual.php" ; |
|
6 | -require_once __DIR__."/../Model/Game/Game.php" ; |
|
7 | -require_once __DIR__."/../Model/Individual/Individual.php" ; |
|
8 | -require_once __DIR__."/../Model/Individual/IndividualRole.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/GameIndividual.php"; |
|
6 | +require_once __DIR__."/../Model/Game/Game.php"; |
|
7 | +require_once __DIR__."/../Model/Individual/Individual.php"; |
|
8 | +require_once __DIR__."/../Model/Individual/IndividualRole.php"; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * DAO for game individuals |
@@ -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", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/SoundHardware.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/SoundHardware.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Sound Hardware |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/ProgrammingLanguage.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/ProgrammingLanguage.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for programming languages |
@@ -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", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/Enhancement.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/Enhancement.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for ports |
@@ -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", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/Engine.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/Engine.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for game engines |
@@ -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( |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../../lib/functions.php" ; |
|
6 | -require_once __DIR__."/../Model/News/NewsSubmission.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../../lib/functions.php"; |
|
6 | +require_once __DIR__."/../Model/News/NewsSubmission.php"; |
|
7 | 7 | |
8 | 8 | use AL\Common\Model\NewsSubmission; |
9 | 9 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | private function getSubmissionQuery($user_id = null, $news_id = null) { |
22 | - $query = "SELECT |
|
22 | + $query = "SELECT |
|
23 | 23 | news_submission.news_submission_id, |
24 | 24 | news_submission.news_headline, |
25 | 25 | news_submission.news_text, |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | //$text = InsertALCode($text); |
234 | 234 | //$text = trim($text); |
235 | 235 | //$text = RemoveSmillies($text); |
236 | - $breaks = array("<br />","<br>","<br/>"); |
|
236 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
237 | 237 | $text = str_ireplace($breaks, "\r\n", $text); |
238 | 238 | |
239 | 239 | $news[] = new \AL\Common\Model\NewsSubmission\NewsSubmission( |