@@ -20,6 +20,10 @@ |
||
20 | 20 | class MartinFormDateTime extends XoopsFormElementTray |
21 | 21 | { |
22 | 22 | |
23 | + /** |
|
24 | + * @param string $caption |
|
25 | + * @param string $name |
|
26 | + */ |
|
23 | 27 | function MartinFormDateTime($caption, $name, $size = 15, $value=0,$is_time = true) |
24 | 28 | { |
25 | 29 | $this->XoopsFormElementTray($caption, ' '); |
@@ -261,6 +261,10 @@ discard block |
||
261 | 261 | * */ |
262 | 262 | if(!function_exists('getModuleArray')) |
263 | 263 | { |
264 | +/** |
|
265 | + * @param string $module_key |
|
266 | + * @param string $keyName |
|
267 | + */ |
|
264 | 268 | function getModuleArray($module_key , $keyName = null , $is_get_arr = false , $selected = null,$ModuleConfig = null) |
265 | 269 | { |
266 | 270 | global $xoopsModuleConfig; |
@@ -335,6 +339,9 @@ discard block |
||
335 | 339 | * */ |
336 | 340 | if(!function_exists('MouthLastDay')) |
337 | 341 | { |
342 | +/** |
|
343 | + * @param string $mouth |
|
344 | + */ |
|
338 | 345 | function MouthLastDay($mouth = null) |
339 | 346 | { |
340 | 347 | $mouth = is_null($mouth) ? date('m') : $mouth; |
@@ -70,7 +70,7 @@ |
||
70 | 70 | /** |
71 | 71 | * Remove orphan tag-item links |
72 | 72 | * |
73 | - * @return boolean |
|
73 | + * @return boolean|null |
|
74 | 74 | * |
75 | 75 | */ |
76 | 76 | function martin_tag_synchronization($mid) |
@@ -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) ; |