@@ -14,6 +14,9 @@ discard block |
||
14 | 14 | public $dbs = array(); |
15 | 15 | public $latest_schema = 55; |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $dbname |
|
19 | + */ |
|
17 | 20 | public function __construct($dbc = null,$dbname = null,$user = null,$pass = null) { |
18 | 21 | global $globalNoDB; |
19 | 22 | if (!isset($globalNoDB) || $globalNoDB === FALSE) { |
@@ -146,6 +149,9 @@ discard block |
||
146 | 149 | return true; |
147 | 150 | } |
148 | 151 | |
152 | + /** |
|
153 | + * @param string $table |
|
154 | + */ |
|
149 | 155 | public function tableExists($table) |
150 | 156 | { |
151 | 157 | global $globalDBdriver; |
@@ -196,6 +202,11 @@ discard block |
||
196 | 202 | /* |
197 | 203 | * Check if index exist |
198 | 204 | */ |
205 | + |
|
206 | + /** |
|
207 | + * @param string $table |
|
208 | + * @param string $index |
|
209 | + */ |
|
199 | 210 | public function indexExists($table,$index) |
200 | 211 | { |
201 | 212 | global $globalDBdriver; |
@@ -238,6 +249,10 @@ discard block |
||
238 | 249 | return $columns; |
239 | 250 | } |
240 | 251 | |
252 | + /** |
|
253 | + * @param string $table |
|
254 | + * @param string $column |
|
255 | + */ |
|
241 | 256 | public function getColumnType($table,$column) { |
242 | 257 | $select = $this->db->query('SELECT '.$column.' FROM '.$table); |
243 | 258 | $tomet = $select->getColumnMeta(0); |
@@ -248,6 +263,11 @@ discard block |
||
248 | 263 | * Check if a column name exist in a table |
249 | 264 | * @return Boolean column exist or not |
250 | 265 | */ |
266 | + |
|
267 | + /** |
|
268 | + * @param string $table |
|
269 | + * @param string $name |
|
270 | + */ |
|
251 | 271 | public function checkColumnName($table,$name) |
252 | 272 | { |
253 | 273 | global $globalDBdriver, $globalDBname; |
@@ -187,6 +187,9 @@ |
||
187 | 187 | return ''; |
188 | 188 | } |
189 | 189 | |
190 | + /** |
|
191 | + * @param string $type |
|
192 | + */ |
|
190 | 193 | public function deleteLocationByType($type) { |
191 | 194 | $query = "DELETE FROM source_location WHERE type = :type"; |
192 | 195 | $query_values = array(':type' => $type); |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | |
75 | 75 | /** |
76 | 76 | * @param $ident |
77 | - * @param $correct_ident |
|
78 | - * @param $source |
|
77 | + * @param string $correct_ident |
|
78 | + * @param string $source |
|
79 | 79 | * @return string |
80 | 80 | */ |
81 | 81 | public function addOperator($ident, $correct_ident, $source) { |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | |
92 | 92 | /** |
93 | 93 | * @param $ident |
94 | - * @param $correct_ident |
|
95 | - * @param $source |
|
94 | + * @param string $correct_ident |
|
95 | + * @param string $source |
|
96 | 96 | * @return string |
97 | 97 | */ |
98 | 98 | public function updateOperator($ident, $correct_ident, $source) { |