@@ -81,7 +81,7 @@ |
||
| 81 | 81 | /** |
| 82 | 82 | * create a new hotel city |
| 83 | 83 | * @param bool $isNew flag the new objects as "new"? |
| 84 | - * @return object HotelCity |
|
| 84 | + * @return MartinHotelcity HotelCity |
|
| 85 | 85 | */ |
| 86 | 86 | public function &create($isNew = true) |
| 87 | 87 | { |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | /** |
| 98 | 98 | * create a new hotel city |
| 99 | 99 | * @param bool $isNew flag the new objects as "new"? |
| 100 | - * @return object promotion |
|
| 100 | + * @return MartinHotelPromotion promotion |
|
| 101 | 101 | */ |
| 102 | 102 | public function &create($isNew = true) |
| 103 | 103 | { |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | /** |
| 91 | 91 | * create a new hotel city |
| 92 | 92 | * @param bool $isNew flag the new objects as "new"? |
| 93 | - * @return object hotelservice |
|
| 93 | + * @return MartinHotelService hotelservice |
|
| 94 | 94 | */ |
| 95 | 95 | public function &create($isNew = true) |
| 96 | 96 | { |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * create a new hotel city |
| 54 | 54 | * @param bool $isNew flag the new objects as "new"? |
| 55 | - * @return object hotelservicetype |
|
| 55 | + * @return MartinHotelServiceType hotelservicetype |
|
| 56 | 56 | */ |
| 57 | 57 | public function &create($isNew = true) |
| 58 | 58 | { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | /** |
| 247 | 247 | * create a new hotel order |
| 248 | 248 | * @param bool $isNew flag the new objects as "new"? |
| 249 | - * @return object order |
|
| 249 | + * @return MartinOrder order |
|
| 250 | 250 | */ |
| 251 | 251 | public function &create($isNew = true) |
| 252 | 252 | { |
@@ -575,7 +575,7 @@ discard block |
||
| 575 | 575 | * @created :2010年06月07日 20时25分 |
| 576 | 576 | * @copyright 1997-2010 The Martin Group |
| 577 | 577 | * @author Martin <[email protected]> |
| 578 | - * @param $order_id |
|
| 578 | + * @param integer $order_id |
|
| 579 | 579 | * @return array |
| 580 | 580 | */ |
| 581 | 581 | public function GetOrderRooms($order_id) |
@@ -612,7 +612,7 @@ discard block |
||
| 612 | 612 | * @created :2010年06月07日 20时25分 |
| 613 | 613 | * @copyright 1997-2010 The Martin Group |
| 614 | 614 | * @author Martin <[email protected]> |
| 615 | - * @param $order_id |
|
| 615 | + * @param integer $order_id |
|
| 616 | 616 | * @return array |
| 617 | 617 | */ |
| 618 | 618 | public function GetOrderQueryRooms($order_id) |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | /** |
| 184 | 184 | * create a new hotel city |
| 185 | 185 | * @param bool $isNew flag the new objects as "new"? |
| 186 | - * @return object room |
|
| 186 | + * @return MartinRoom room |
|
| 187 | 187 | */ |
| 188 | 188 | public function &create($isNew = true) |
| 189 | 189 | { |
@@ -225,8 +225,8 @@ discard block |
||
| 225 | 225 | * @created :2010年06月20日 13时09分 |
| 226 | 226 | * @copyright 1997-2010 The Martin Group |
| 227 | 227 | * @author Martin <[email protected]> |
| 228 | - * @param $sql |
|
| 229 | - * @param null $key |
|
| 228 | + * @param string $sql |
|
| 229 | + * @param string $key |
|
| 230 | 230 | * @return array |
| 231 | 231 | */ |
| 232 | 232 | public function GetRows($sql, $key = null) |
@@ -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,7 +367,7 @@ discard block |
||
| 367 | 367 | * */ |
| 368 | 368 | if (!function_exists('MouthLastDay')) { |
| 369 | 369 | /** |
| 370 | - * @param null $mouth |
|
| 370 | + * @param string $mouth |
|
| 371 | 371 | * @return array|bool|int|string |
| 372 | 372 | */ |
| 373 | 373 | function MouthLastDay($mouth = null) |
@@ -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="utf-8" ) { |
| 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 ="utf-8" ) { |
| 98 | 105 | $output = ""; |
| 99 | 106 | if(!isset($_output_charset) )$_output_charset = $this->parameter['_input_charset ']; |