@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * @deprecated Use Fwlib\Util\ArrayUtil::increaseByKey() |
| 21 | 21 | * @param array &$ar_srce |
| 22 | 22 | * @param string $key |
| 23 | - * @param mixed $val Default val if not assigned. |
|
| 23 | + * @param integer $val Default val if not assigned. |
|
| 24 | 24 | */ |
| 25 | 25 | function ArrayAdd (&$ar_srce, $key, $val = 1) { |
| 26 | 26 | if (isset($ar_srce[$key])) { |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * |
| 81 | 81 | * @deprecated Use Fwlib\Util\ArrayUtil::insert() |
| 82 | 82 | * @param array &$ar_srce |
| 83 | - * @param mixed $idx Position idx, append @ end if not found. |
|
| 83 | + * @param string $idx Position idx, append @ end if not found. |
|
| 84 | 84 | * @param array $ar_ins Array to insert, can have multi item. |
| 85 | 85 | * @param integer $i_pos -1=insert before index, 0=replace index |
| 86 | 86 | * 1=insert after index, default=1. |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @param string $content Content to download |
| 21 | 21 | * @param string $filename Download file name, send to client, not path on server. |
| 22 | 22 | * @param string $mime Mime type of file |
| 23 | - * @return boolean |
|
| 23 | + * @return null|boolean |
|
| 24 | 24 | */ |
| 25 | 25 | function Download ($content, $filename = '', $mime = 'application/force-download') { |
| 26 | 26 | list($usec, $sec) = explode(" ", microtime()); |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | * @param array $r Request, $_GET/$_POST etc... |
| 127 | 127 | * @param string $var Name of variant |
| 128 | 128 | * @param mixed $default If variant is not given, return this |
| 129 | - * @return mixed |
|
| 129 | + * @return string |
|
| 130 | 130 | */ |
| 131 | 131 | function GetRequest (&$r, $var, $default = null) { |
| 132 | 132 | if (isset($r[$var])) { |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | /** |
| 131 | 131 | * Test how many uuid can this program generate per second |
| 132 | 132 | * |
| 133 | - * @param long $num Number of uuid generated in test, the more the result more currect. |
|
| 133 | + * @param integer $num Number of uuid generated in test, the more the result more currect. |
|
| 134 | 134 | * @param string $file If assigned, result will be write to this file, 1 uuid per line. |
| 135 | 135 | */ |
| 136 | 136 | function UuidSpeedTest($num = 100, $file = '') { |
@@ -886,7 +886,7 @@ |
||
| 886 | 886 | * |
| 887 | 887 | * Timestamp column are various for different db, hard to test. |
| 888 | 888 | * |
| 889 | - * @param $table |
|
| 889 | + * @param string $table |
|
| 890 | 890 | * @return string |
| 891 | 891 | */ |
| 892 | 892 | public function getMetaTimestamp($table) |
@@ -265,6 +265,7 @@ |
||
| 265 | 265 | * |
| 266 | 266 | * Add key length limit, by limit of memcached. If exceed, will only leave |
| 267 | 267 | * tailing part of original key. |
| 268 | + * @param string $key |
|
| 268 | 269 | */ |
| 269 | 270 | protected function hashKey($key) |
| 270 | 271 | { |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | /** |
| 272 | 272 | * Get SQL for write dictionary data to db, truncate part. |
| 273 | 273 | * |
| 274 | - * @param object $dbConn Fwlib\Bridge\Adodb |
|
| 274 | + * @param Adodb $dbConn Fwlib\Bridge\Adodb |
|
| 275 | 275 | * @return string |
| 276 | 276 | */ |
| 277 | 277 | public function getSqlTruncate($dbConn) |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | * |
| 296 | 296 | * Use '*' for all columns. |
| 297 | 297 | * |
| 298 | - * @param string|array $column |
|
| 298 | + * @param string $column |
|
| 299 | 299 | * @return array |
| 300 | 300 | */ |
| 301 | 301 | protected function parseColumns($column = '') |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | /** |
| 429 | 429 | * Setter of $primaryKey |
| 430 | 430 | * |
| 431 | - * @param string|array $primaryKey |
|
| 431 | + * @param string $primaryKey |
|
| 432 | 432 | * @return CodeDictionary |
| 433 | 433 | */ |
| 434 | 434 | public function setPrimaryKey($primaryKey) |
@@ -467,7 +467,7 @@ |
||
| 467 | 467 | /** |
| 468 | 468 | * Set tables will not be exported |
| 469 | 469 | * |
| 470 | - * @param array $ar |
|
| 470 | + * @param string $ar |
|
| 471 | 471 | */ |
| 472 | 472 | public function setTableExclude($ar) |
| 473 | 473 | { |
@@ -702,9 +702,9 @@ |
||
| 702 | 702 | * |
| 703 | 703 | * @param string $table |
| 704 | 704 | * @param int|string $index |
| 705 | - * @param array $pkValueArray |
|
| 705 | + * @param array $keyValueArray |
|
| 706 | 706 | * @param array $columnArray |
| 707 | - * @param array $pkArray |
|
| 707 | + * @param array $keyArray |
|
| 708 | 708 | * @param array &$dataOld |
| 709 | 709 | * @return array |
| 710 | 710 | */ |