@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * Init func |
| 105 | 105 | * Do things according default then user config. |
| 106 | 106 | * |
| 107 | - * @return object |
|
| 107 | + * @return Fwolflib |
|
| 108 | 108 | */ |
| 109 | 109 | public function Init () { |
| 110 | 110 | return $this; |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | * @see $aCfg |
| 195 | 195 | * @param array $k |
| 196 | 196 | * @param mixed $v |
| 197 | - * @return this |
|
| 197 | + * @return Fwolflib |
|
| 198 | 198 | */ |
| 199 | 199 | public function SetCfg ($k, $v = null) { |
| 200 | 200 | if (is_array($k)) { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | /** |
| 216 | 216 | * Set default config. |
| 217 | 217 | * |
| 218 | - * @return object |
|
| 218 | + * @return Fwolflib |
|
| 219 | 219 | */ |
| 220 | 220 | protected function SetCfgDefault () { |
| 221 | 221 | // Log level eq/gt this will write to php errorlog |
@@ -702,6 +702,10 @@ discard block |
||
| 702 | 702 | } |
| 703 | 703 | } |
| 704 | 704 | // decode a multipart header |
| 705 | + |
|
| 706 | + /** |
|
| 707 | + * @param integer $partid |
|
| 708 | + */ |
|
| 705 | 709 | function multipartHeaders($partid,$mailbody) { |
| 706 | 710 | $text=substr($mailbody,$this->part[$partid]['start'], |
| 707 | 711 | $this->part[$partid]['ende']-$this->part[$partid]['start']); |
@@ -748,6 +752,11 @@ discard block |
||
| 748 | 752 | } |
| 749 | 753 | // we have a multipart message body |
| 750 | 754 | // split the parts |
| 755 | + |
|
| 756 | + /** |
|
| 757 | + * @param string $boundary |
|
| 758 | + * @param string $text |
|
| 759 | + */ |
|
| 751 | 760 | function multipartSplit($boundary,$text) { |
| 752 | 761 | $start=0; |
| 753 | 762 | $b_len=strlen("--".$boundary); |
@@ -729,7 +729,7 @@ |
||
| 729 | 729 | /** |
| 730 | 730 | * Set default config. |
| 731 | 731 | * |
| 732 | - * @return object |
|
| 732 | + * @return Module |
|
| 733 | 733 | */ |
| 734 | 734 | protected function SetCfgDefault () { |
| 735 | 735 | parent::SetCfgDefault(); |
@@ -328,7 +328,7 @@ |
||
| 328 | 328 | * |
| 329 | 329 | * Useing my extended ADODB class now, little difference when new object. |
| 330 | 330 | * @var array $dbprofile Server config array |
| 331 | - * @return object Db connection object |
|
| 331 | + * @return null|Adodb Db connection object |
|
| 332 | 332 | */ |
| 333 | 333 | protected function DbConn ($dbprofile) { |
| 334 | 334 | $conn = new Adodb($dbprofile); |
@@ -484,7 +484,7 @@ |
||
| 484 | 484 | * New Validator object |
| 485 | 485 | * |
| 486 | 486 | * @see $oValidator |
| 487 | - * @return object |
|
| 487 | + * @return Validator |
|
| 488 | 488 | */ |
| 489 | 489 | protected function NewObjValidator () { |
| 490 | 490 | return new Validator(); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * 1 chinese char will count as 1 char. |
| 56 | 56 | * |
| 57 | 57 | * @param string $s_sms |
| 58 | - * @return integer |
|
| 58 | + * @return double |
|
| 59 | 59 | */ |
| 60 | 60 | public function CountPart ($s_sms = '') { |
| 61 | 61 | // Is there chinese in sms ? |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | /** |
| 204 | 204 | * Init config vars, give default value. |
| 205 | 205 | * |
| 206 | - * @return this |
|
| 206 | + * @return Sms |
|
| 207 | 207 | */ |
| 208 | 208 | public function Init () { |
| 209 | 209 | parent::Init(); |
@@ -316,6 +316,7 @@ |
||
| 316 | 316 | /** |
| 317 | 317 | * Construct |
| 318 | 318 | * @param object &$db Db object |
| 319 | + * @param Adodb $db |
|
| 319 | 320 | */ |
| 320 | 321 | public function __construct(&$db) |
| 321 | 322 | { |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | * New db conn obj |
| 155 | 155 | * |
| 156 | 156 | * @param array $db_prof |
| 157 | - * @return object |
|
| 157 | + * @return null|Adodb |
|
| 158 | 158 | * @see $oDb |
| 159 | 159 | */ |
| 160 | 160 | protected function NewObjDb($db_prof) { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | /** |
| 173 | 173 | * Check and install record table if not exists |
| 174 | - * @param object $db Db connection |
|
| 174 | + * @param null|Adodb $db Db connection |
|
| 175 | 175 | * @param string $tbl Name of record tbl, if empty, use $this->sTblRecord |
| 176 | 176 | */ |
| 177 | 177 | protected function ChkTblRecord($db, $tbl = '') |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | * |
| 257 | 257 | * Useing my extended ADODB class now, little difference when new object. |
| 258 | 258 | * @var array $dbprofile Server config array |
| 259 | - * @return object Db connection object |
|
| 259 | + * @return null|Adodb Db connection object |
|
| 260 | 260 | */ |
| 261 | 261 | protected function DbConn($dbprofile) |
| 262 | 262 | { |
@@ -353,8 +353,8 @@ discard block |
||
| 353 | 353 | /** |
| 354 | 354 | * Set last timestamp, for next round |
| 355 | 355 | * @param $db_dest Destination db connection, write here |
| 356 | - * @param $tbl_srce Table name of source table. |
|
| 357 | - * @param $last_ts Last timestamp value. |
|
| 356 | + * @param string $tbl_srce Table name of source table. |
|
| 357 | + * @param string $last_ts Last timestamp value. |
|
| 358 | 358 | * @param boolean Operate true or false |
| 359 | 359 | */ |
| 360 | 360 | protected function SetLastTs($db_dest, $tbl_srce, $last_ts) { |