Index: trunk/phase3/includes/DatabaseFunctions.php |
— | — | @@ -154,6 +154,7 @@ |
155 | 155 | |
156 | 156 | /** |
157 | 157 | * @todo document function |
| 158 | + * @see Database::insertId() |
158 | 159 | */ |
159 | 160 | function wfInsertId( $dbi = DB_LAST ) { |
160 | 161 | $db = wfGetDB( $dbi ); |
— | — | @@ -166,6 +167,7 @@ |
167 | 168 | |
168 | 169 | /** |
169 | 170 | * @todo document function |
| 171 | + * @see Database::dataSeek() |
170 | 172 | */ |
171 | 173 | function wfDataSeek( $res, $row, $dbi = DB_LAST ) { |
172 | 174 | $db = wfGetDB( $dbi ); |
— | — | @@ -177,7 +179,8 @@ |
178 | 180 | } |
179 | 181 | |
180 | 182 | /** |
181 | | - * @todo document function |
| 183 | + * Get the last error number |
| 184 | + * @see Database::lastErrno() |
182 | 185 | */ |
183 | 186 | function wfLastErrno( $dbi = DB_LAST ) { |
184 | 187 | $db = wfGetDB( $dbi ); |
— | — | @@ -189,7 +192,8 @@ |
190 | 193 | } |
191 | 194 | |
192 | 195 | /** |
193 | | - * @todo document function |
| 196 | + * Get the last error |
| 197 | + * @see Database::lastError() |
194 | 198 | */ |
195 | 199 | function wfLastError( $dbi = DB_LAST ) { |
196 | 200 | $db = wfGetDB( $dbi ); |
— | — | @@ -201,7 +205,8 @@ |
202 | 206 | } |
203 | 207 | |
204 | 208 | /** |
205 | | - * @todo document function |
| 209 | + * Get the number of affected rows |
| 210 | + * @see Database::affectedRows() |
206 | 211 | */ |
207 | 212 | function wfAffectedRows( $dbi = DB_LAST ) { |
208 | 213 | $db = wfGetDB( $dbi ); |
— | — | @@ -213,7 +218,8 @@ |
214 | 219 | } |
215 | 220 | |
216 | 221 | /** |
217 | | - * @todo document function |
| 222 | + * Get the last query ran |
| 223 | + * @see Database::lastQuery |
218 | 224 | */ |
219 | 225 | function wfLastDBquery( $dbi = DB_LAST ) { |
220 | 226 | $db = wfGetDB( $dbi ); |
— | — | @@ -245,8 +251,8 @@ |
246 | 252 | |
247 | 253 | |
248 | 254 | /** |
| 255 | + * Simple select wrapper, return one field |
249 | 256 | * @see Database::selectField() |
250 | | - * @todo document function |
251 | 257 | * @param $table |
252 | 258 | * @param $var |
253 | 259 | * @param $cond Default '' |
— | — | @@ -263,8 +269,8 @@ |
264 | 270 | } |
265 | 271 | |
266 | 272 | /** |
| 273 | + * Does a given field exist on the specified table? |
267 | 274 | * @see Database::fieldExists() |
268 | | - * @todo document function |
269 | 275 | * @param $table |
270 | 276 | * @param $field |
271 | 277 | * @param $dbi Default DB_LAST |
— | — | @@ -280,8 +286,8 @@ |
281 | 287 | } |
282 | 288 | |
283 | 289 | /** |
| 290 | + * Does the requested index exist on the specified table? |
284 | 291 | * @see Database::indexExists() |
285 | | - * @todo document function |
286 | 292 | * @param $table String |
287 | 293 | * @param $index |
288 | 294 | * @param $dbi Default DB_LAST |
— | — | @@ -354,7 +360,8 @@ |
355 | 361 | } |
356 | 362 | |
357 | 363 | /** |
358 | | - * @todo document function |
| 364 | + * Get fully usable table name |
| 365 | + * @see Database::tableName() |
359 | 366 | */ |
360 | 367 | function wfTableName( $name, $dbi = DB_LAST ) { |
361 | 368 | $db = wfGetDB( $dbi ); |
— | — | @@ -367,6 +374,7 @@ |
368 | 375 | |
369 | 376 | /** |
370 | 377 | * @todo document function |
| 378 | + * @see Database::strencode() |
371 | 379 | */ |
372 | 380 | function wfStrencode( $s, $dbi = DB_LAST ) { |
373 | 381 | $db = wfGetDB( $dbi ); |
— | — | @@ -379,6 +387,7 @@ |
380 | 388 | |
381 | 389 | /** |
382 | 390 | * @todo document function |
| 391 | + * @see Database::nextSequenceValue() |
383 | 392 | */ |
384 | 393 | function wfNextSequenceValue( $seqName, $dbi = DB_MASTER ) { |
385 | 394 | $db = wfGetDB( $dbi ); |
— | — | @@ -391,6 +400,7 @@ |
392 | 401 | |
393 | 402 | /** |
394 | 403 | * @todo document function |
| 404 | + * @see Database::useIndexClause() |
395 | 405 | */ |
396 | 406 | function wfUseIndexClause( $index, $dbi = DB_SLAVE ) { |
397 | 407 | $db = wfGetDB( $dbi ); |