Passed
Push — development ( 4cb381...e8a506 )
by Mirco
52:18 queued 07:14
created
htdocs/lib2/db.inc.php 1 patch
Doc Comments   +58 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,6 +336,9 @@  discard block
 block discarded – undo
336 336
     return $result;
337 337
 }
338 338
 
339
+/**
340
+ * @param string $sql
341
+ */
339 342
 function sqlf($sql)
340 343
 {
341 344
     global $db;
@@ -349,6 +352,9 @@  discard block
 block discarded – undo
349 352
     return $result;
350 353
 }
351 354
 
355
+/**
356
+ * @param string $sql
357
+ */
352 358
 function sqlf_slave($sql)
353 359
 {
354 360
     global $db;
@@ -362,6 +368,9 @@  discard block
 block discarded – undo
362 368
     return $result;
363 369
 }
364 370
 
371
+/**
372
+ * @param string $sql
373
+ */
365 374
 function sqll($sql)
366 375
 {
367 376
     global $db;
@@ -375,6 +384,10 @@  discard block
 block discarded – undo
375 384
     return $result;
376 385
 }
377 386
 
387
+/**
388
+ * @param string $sql
389
+ * @param integer $default
390
+ */
378 391
 function sqlf_value($sql, $default)
379 392
 {
380 393
     global $db;
@@ -388,6 +401,10 @@  discard block
 block discarded – undo
388 401
     return $result;
389 402
 }
390 403
 
404
+/**
405
+ * @param string $sql
406
+ * @param integer $default
407
+ */
391 408
 function sqll_value($sql, $default)
392 409
 {
393 410
     global $db;
@@ -463,6 +480,9 @@  discard block
 block discarded – undo
463 480
     return sql_value_internal(true, $sql, $default, $args);
464 481
 }
465 482
 
483
+/**
484
+ * @param boolean $bQuerySlave
485
+ */
466 486
 function sql_value_internal($bQuerySlave, $sql, $default)
467 487
 {
468 488
     $args = func_get_args();
@@ -563,7 +583,7 @@  discard block
 block discarded – undo
563 583
 }
564 584
 
565 585
 /**
566
- * @param $rs
586
+ * @param resource $rs
567 587
  *
568 588
  * @return array
569 589
  */
@@ -616,11 +636,17 @@  discard block
 block discarded – undo
616 636
     return mysql_insert_id($db['dblink_slave']);
617 637
 }
618 638
 
639
+/**
640
+ * @param resource $rs
641
+ */
619 642
 function sql_num_rows($rs)
620 643
 {
621 644
     return mysql_num_rows($rs);
622 645
 }
623 646
 
647
+/**
648
+ * @param string $table
649
+ */
624 650
 function sql_temp_table($table)
625 651
 {
626 652
     global $db, $opt;
@@ -650,6 +676,9 @@  discard block
 block discarded – undo
650 676
     $db['temptables'][$table] = $table;
651 677
 }
652 678
 
679
+/**
680
+ * @param string $table
681
+ */
653 682
 function sql_temp_table_slave($table)
654 683
 {
655 684
     global $db, $opt;
@@ -670,6 +699,9 @@  discard block
 block discarded – undo
670 699
     $db['temptables_slave'][$table] = $table;
671 700
 }
672 701
 
702
+/**
703
+ * @param string $table
704
+ */
673 705
 function sql_drop_temp_table($table)
674 706
 {
675 707
     global $db, $opt;
@@ -706,6 +738,9 @@  discard block
 block discarded – undo
706 738
     $db['temptables'][$newname] = $newname;
707 739
 }
708 740
 
741
+/**
742
+ * @param string $table
743
+ */
709 744
 function sql_drop_temp_table_slave($table)
710 745
 {
711 746
     global $db, $opt;
@@ -1070,6 +1105,9 @@  discard block
 block discarded – undo
1070 1105
     }
1071 1106
 }
1072 1107
 
1108
+/**
1109
+ * @param string $warnmessage
1110
+ */
1073 1111
 function sql_warn($warnmessage)
1074 1112
 {
1075 1113
     global $opt;
@@ -1097,6 +1135,9 @@  discard block
 block discarded – undo
1097 1135
     }
1098 1136
 }
1099 1137
 
1138
+/**
1139
+ * @param resource $rs
1140
+ */
1100 1141
 function sql_export_recordset($f, $rs, $table, $truncate = true)
1101 1142
 {
1102 1143
     fwrite($f, "SET NAMES 'utf8';\n");
@@ -1127,6 +1168,9 @@  discard block
 block discarded – undo
1127 1168
     }
1128 1169
 }
1129 1170
 
1171
+/**
1172
+ * @param resource $f
1173
+ */
1130 1174
 function sql_export_table($f, $table)
1131 1175
 {
1132 1176
     $primary = [];
@@ -1148,6 +1192,10 @@  discard block
 block discarded – undo
1148 1192
     sql_free_result($rs);
1149 1193
 }
1150 1194
 
1195
+/**
1196
+ * @param string $filename
1197
+ * @param string[] $tables
1198
+ */
1151 1199
 function sql_export_tables_to_file($filename, $tables)
1152 1200
 {
1153 1201
     $f = fopen($filename, 'w');
@@ -1175,6 +1223,9 @@  discard block
 block discarded – undo
1175 1223
     fclose($f);
1176 1224
 }
1177 1225
 
1226
+/**
1227
+ * @param resource $f
1228
+ */
1178 1229
 function sql_export_structure($f, $table)
1179 1230
 {
1180 1231
     $rs = sql("SHOW CREATE TABLE `&1`", $table);
@@ -1190,6 +1241,9 @@  discard block
 block discarded – undo
1190 1241
     fwrite($f, $sTableSql . " ;\n");
1191 1242
 }
1192 1243
 
1244
+/**
1245
+ * @param string $filename
1246
+ */
1193 1247
 function sql_export_structure_to_file($filename, $table)
1194 1248
 {
1195 1249
     $f = fopen($filename, 'w');
@@ -1263,6 +1317,9 @@  discard block
 block discarded – undo
1263 1317
 }
1264 1318
 
1265 1319
 // test if a function or procedure exists
1320
+/**
1321
+ * @param string $type
1322
+ */
1266 1323
 function sql_fp_exists($type, $name)
1267 1324
 {
1268 1325
     global $opt;
Please login to merge, or discard this patch.