@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace AL\Common\DAO; |
| 3 | 3 | |
| 4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
| 5 | -require_once __DIR__."/../Model/Game/GameSeries.php" ; |
|
| 6 | -require_once __DIR__."/../Model/Game/Game.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/Game/GameSeries.php"; |
|
| 6 | +require_once __DIR__."/../Model/Game/Game.php"; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * DAO for GamesSeries |
@@ -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/Interview/Interview.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/Interview/Interview.php"; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * DAO for Interview |
@@ -111,11 +111,11 @@ |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * update a role |
|
| 115 | - * |
|
| 116 | - * @param int role_id |
|
| 117 | - * @param varchar role_name |
|
| 118 | - */ |
|
| 114 | + * update a role |
|
| 115 | + * |
|
| 116 | + * @param int role_id |
|
| 117 | + * @param varchar role_name |
|
| 118 | + */ |
|
| 119 | 119 | public function updateDeveloperRole($role_id, $role_name) { |
| 120 | 120 | $stmt = \AL\Db\execute_query( |
| 121 | 121 | "DeveloperRoleDAO: updateDeveloperRole", |
@@ -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/PubDev/DeveloperRole.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/PubDev/DeveloperRole.php"; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * DAO for Developer Roles |
@@ -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 |