@@ -127,7 +127,7 @@ |
||
| 127 | 127 | * @created :2010年06月27日 19时57分 |
| 128 | 128 | * @copyright 1997-2010 The Martin Group |
| 129 | 129 | * @author Martin <[email protected]> |
| 130 | - * @param $sql |
|
| 130 | + * @param string $sql |
|
| 131 | 131 | * @return int |
| 132 | 132 | */ |
| 133 | 133 | public function GetCount($sql) |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | if (!function_exists('GetRanks')) { |
| 218 | 218 | /** |
| 219 | 219 | * @param $xoopsModuleConfig |
| 220 | - * @return mixed |
|
| 220 | + * @return string[] |
|
| 221 | 221 | */ |
| 222 | 222 | function GetRanks(&$xoopsModuleConfig) |
| 223 | 223 | { |
@@ -278,8 +278,8 @@ discard block |
||
| 278 | 278 | * */ |
| 279 | 279 | if (!function_exists('getModuleArray')) { |
| 280 | 280 | /** |
| 281 | - * @param $module_key |
|
| 282 | - * @param null $keyName |
|
| 281 | + * @param string $module_key |
|
| 282 | + * @param string $keyName |
|
| 283 | 283 | * @param bool $is_get_arr |
| 284 | 284 | * @param null $selected |
| 285 | 285 | * @param null $ModuleConfig |
@@ -367,8 +367,8 @@ discard block |
||
| 367 | 367 | * */ |
| 368 | 368 | if (!function_exists('MouthLastDay')) { |
| 369 | 369 | /** |
| 370 | - * @param null $mouth |
|
| 371 | - * @return array|bool|int|string |
|
| 370 | + * @param string $mouth |
|
| 371 | + * @return integer |
|
| 372 | 372 | */ |
| 373 | 373 | function MouthLastDay($mouth = null) |
| 374 | 374 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | //get hotel tag function |
| 38 | 38 | /** |
| 39 | 39 | * @param $items |
| 40 | - * @return bool |
|
| 40 | + * @return false|null |
|
| 41 | 41 | */ |
| 42 | 42 | function martin_tag_iteminfo(&$items) |
| 43 | 43 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * Remove orphan tag-item links |
| 79 | 79 | * |
| 80 | 80 | * @param $mid |
| 81 | - * @return bool |
|
| 81 | + * @return boolean|null |
|
| 82 | 82 | */ |
| 83 | 83 | function martin_tag_synchronization($mid) |
| 84 | 84 | { |
@@ -70,6 +70,9 @@ discard block |
||
| 70 | 70 | }else return false; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $url |
|
| 75 | + */ |
|
| 73 | 76 | function get_verify($url,$time_out = "60") { |
| 74 | 77 | $urlarr = parse_url($url); |
| 75 | 78 | $errno = ""; |
@@ -117,6 +120,9 @@ discard block |
||
| 117 | 120 | |
| 118 | 121 | } |
| 119 | 122 | |
| 123 | + /** |
|
| 124 | + * @param string $prestr |
|
| 125 | + */ |
|
| 120 | 126 | function sign($prestr) { |
| 121 | 127 | $sign=''; |
| 122 | 128 | if($this->sign_type == 'MD5') { |
@@ -155,6 +161,11 @@ discard block |
||
| 155 | 161 | } |
| 156 | 162 | |
| 157 | 163 | //ʵÏÖ¶àÖÖ×Ö·û½âÂ뷽ʽ |
| 164 | + |
|
| 165 | + /** |
|
| 166 | + * @param string $input |
|
| 167 | + * @param string $_input_charset |
|
| 168 | + */ |
|
| 158 | 169 | function charset_decode($input,$_input_charset ,$_output_charset="GBK" ) { |
| 159 | 170 | $output = ""; |
| 160 | 171 | if(!isset($_input_charset) )$_input_charset = $this->_input_charset ; |
@@ -71,6 +71,9 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $prestr |
|
| 76 | + */ |
|
| 74 | 77 | function sign($prestr) { |
| 75 | 78 | $mysign = ""; |
| 76 | 79 | if($this->sign_type == 'MD5') { |
@@ -94,6 +97,10 @@ discard block |
||
| 94 | 97 | return $para; |
| 95 | 98 | } |
| 96 | 99 | //ʵÏÖ¶àÖÖ×Ö·û±àÂ뷽ʽ |
| 100 | + |
|
| 101 | + /** |
|
| 102 | + * @return string |
|
| 103 | + */ |
|
| 97 | 104 | function charset_encode($input,$_output_charset ,$_input_charset ="GBK" ) { |
| 98 | 105 | $output = ""; |
| 99 | 106 | if(!isset($_output_charset) )$_output_charset = $this->parameter['_input_charset ']; |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | +/** |
|
| 29 | + * @param string $word |
|
| 30 | + */ |
|
| 28 | 31 | function log_result($word) { |
| 29 | 32 | $fp = fopen("log.txt","a"); |
| 30 | 33 | flock($fp, LOCK_EX) ; |
@@ -70,6 +70,9 @@ discard block |
||
| 70 | 70 | }else return false; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $url |
|
| 75 | + */ |
|
| 73 | 76 | function get_verify($url,$time_out = "60") { |
| 74 | 77 | $urlarr = parse_url($url); |
| 75 | 78 | $errno = ""; |
@@ -117,6 +120,9 @@ discard block |
||
| 117 | 120 | |
| 118 | 121 | } |
| 119 | 122 | |
| 123 | + /** |
|
| 124 | + * @param string $prestr |
|
| 125 | + */ |
|
| 120 | 126 | function sign($prestr) { |
| 121 | 127 | $sign=''; |
| 122 | 128 | if($this->sign_type == 'MD5') { |
@@ -155,6 +161,11 @@ discard block |
||
| 155 | 161 | } |
| 156 | 162 | |
| 157 | 163 | //ʵÏÖ¶àÖÖ×Ö·û½âÂ뷽ʽ |
| 164 | + |
|
| 165 | + /** |
|
| 166 | + * @param string $input |
|
| 167 | + * @param string $_input_charset |
|
| 168 | + */ |
|
| 158 | 169 | function charset_decode($input,$_input_charset ,$_output_charset="GBK" ) { |
| 159 | 170 | $output = ""; |
| 160 | 171 | if(!isset($_input_charset) )$_input_charset = $this->_input_charset ; |
@@ -71,6 +71,9 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $prestr |
|
| 76 | + */ |
|
| 74 | 77 | function sign($prestr) { |
| 75 | 78 | $mysign = ""; |
| 76 | 79 | if($this->sign_type == 'MD5') { |
@@ -94,6 +97,10 @@ discard block |
||
| 94 | 97 | return $para; |
| 95 | 98 | } |
| 96 | 99 | //ʵÏÖ¶àÖÖ×Ö·û±àÂ뷽ʽ |
| 100 | + |
|
| 101 | + /** |
|
| 102 | + * @return string |
|
| 103 | + */ |
|
| 97 | 104 | function charset_encode($input,$_output_charset ,$_input_charset ="GBK" ) { |
| 98 | 105 | $output = ""; |
| 99 | 106 | if(!isset($_output_charset) )$_output_charset = $this->parameter['_input_charset ']; |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | +/** |
|
| 29 | + * @param string $word |
|
| 30 | + */ |
|
| 28 | 31 | function log_result($word) { |
| 29 | 32 | $fp = fopen("log.txt","a"); |
| 30 | 33 | flock($fp, LOCK_EX) ; |