@@ -128,6 +128,9 @@ |
||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | |
| 131 | +/** |
|
| 132 | + * @param boolean $include_editor |
|
| 133 | + */ |
|
| 131 | 134 | function assignFromDB($userid, $include_editor) |
| 132 | 135 | { |
| 133 | 136 | global $tpl, $opt, $smilies, $_REQUEST; |
@@ -182,6 +182,9 @@ |
||
| 182 | 182 | $tpl->display(); |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | +/** |
|
| 186 | + * @param user $user |
|
| 187 | + */ |
|
| 185 | 188 | function assignFromUser($user) |
| 186 | 189 | { |
| 187 | 190 | global $tpl; |
@@ -675,7 +675,7 @@ |
||
| 675 | 675 | * @param $admins |
| 676 | 676 | * @param $wp_oc |
| 677 | 677 | * @param $r |
| 678 | - * @param $field |
|
| 678 | + * @param string $field |
|
| 679 | 679 | * @param $oldvalue |
| 680 | 680 | * @param $newvalue |
| 681 | 681 | */ |
@@ -1461,6 +1461,10 @@ |
||
| 1461 | 1461 | } |
| 1462 | 1462 | |
| 1463 | 1463 | // helper function for output modules |
| 1464 | + |
|
| 1465 | + /** |
|
| 1466 | + * @param string $str |
|
| 1467 | + */ |
|
| 1464 | 1468 | function append_output($str) |
| 1465 | 1469 | { |
| 1466 | 1470 | global $db, $content, $bUseZip; |
@@ -54,6 +54,9 @@ discard block |
||
| 54 | 54 | $this->onDoSubmit($this->coordinate->getCoordinate(), $this->getDesc()); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param \Oc\Libse\Coordinate\CoordinateCoordinate $coordinate |
|
| 59 | + */ |
|
| 57 | 60 | abstract protected function onDoSubmit($coordinate, $description); |
| 58 | 61 | |
| 59 | 62 | protected function getType() |
@@ -74,6 +77,9 @@ discard block |
||
| 74 | 77 | $this->typeImages = $childWpHandler->getChildNamesAndImages(); |
| 75 | 78 | } |
| 76 | 79 | |
| 80 | + /** |
|
| 81 | + * @param \Oc\Libse\Coordinate\CoordinateCoordinate $coords |
|
| 82 | + */ |
|
| 77 | 83 | public function initCoordinate($coords) |
| 78 | 84 | { |
| 79 | 85 | $this->coordinate->init($coords->latitude(), $coords->longitude()); |
@@ -35,6 +35,9 @@ discard block |
||
| 35 | 35 | $this->init(0, 0); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param boolean $request |
|
| 40 | + */ |
|
| 38 | 41 | private function initRequest($request) |
| 39 | 42 | { |
| 40 | 43 | if ($request) { |
@@ -44,6 +47,9 @@ discard block |
||
| 44 | 47 | return new RequestHttp(); |
| 45 | 48 | } |
| 46 | 49 | |
| 50 | + /** |
|
| 51 | + * @param boolean $translator |
|
| 52 | + */ |
|
| 47 | 53 | private function initTranslator($translator) |
| 48 | 54 | { |
| 49 | 55 | if ($translator) { |
@@ -84,6 +84,11 @@ discard block |
||
| 84 | 84 | /* $block ... {t[ a=$a|nbsp b="a" ...]} |
| 85 | 85 | * |
| 86 | 86 | */ |
| 87 | +/** |
|
| 88 | + * @param string $block |
|
| 89 | + * @param string $message |
|
| 90 | + * @param integer $line |
|
| 91 | + */ |
|
| 87 | 92 | function smarty_prefilter_t_process_block($block, $message, &$smarty, $line) |
| 88 | 93 | { |
| 89 | 94 | if ($message != '') { |
@@ -252,6 +257,9 @@ discard block |
||
| 252 | 257 | return $attrs; |
| 253 | 258 | } |
| 254 | 259 | |
| 260 | +/** |
|
| 261 | + * @param string[] $needles |
|
| 262 | + */ |
|
| 255 | 263 | function smarty_prefilter_t_strpos_multi($haystack, $needles) |
| 256 | 264 | { |
| 257 | 265 | $arg = func_get_args(); |
@@ -245,6 +245,9 @@ discard block |
||
| 245 | 245 | /* $truncatLastInsert = true for downloaded file |
| 246 | 246 | * $truncatLastInsert = false to sign self generated file (in function export) |
| 247 | 247 | */ |
| 248 | +/** |
|
| 249 | + * @param boolean $truncateLastInsert |
|
| 250 | + */ |
|
| 248 | 251 | function calcDataSqlChecksum($truncateLastInsert) |
| 249 | 252 | { |
| 250 | 253 | global $opt; |
@@ -390,6 +393,10 @@ discard block |
||
| 390 | 393 | $tpl->redirect('translate.php?translang=' . $translang); |
| 391 | 394 | } |
| 392 | 395 | |
| 396 | +/** |
|
| 397 | + * @param string $relbasedir |
|
| 398 | + * @param string $ext |
|
| 399 | + */ |
|
| 393 | 400 | function unlinkFiles($relbasedir, $ext) |
| 394 | 401 | { |
| 395 | 402 | global $opt; |
@@ -481,6 +488,9 @@ discard block |
||
| 481 | 488 | $tpl->redirect('translate.php?translang=' . $translang); |
| 482 | 489 | } |
| 483 | 490 | |
| 491 | +/** |
|
| 492 | + * @param integer $freeId |
|
| 493 | + */ |
|
| 484 | 494 | function useId($freeId) |
| 485 | 495 | { |
| 486 | 496 | $lastId = sql_value("SELECT MAX(`id`) FROM `sys_trans`", 0); |
@@ -490,6 +500,9 @@ discard block |
||
| 490 | 500 | setId($lastId, $freeId); |
| 491 | 501 | } |
| 492 | 502 | |
| 503 | +/** |
|
| 504 | + * @param integer $oldId |
|
| 505 | + */ |
|
| 493 | 506 | function setId($oldId, $newId) |
| 494 | 507 | { |
| 495 | 508 | global $transIdCols; |
@@ -568,6 +581,9 @@ discard block |
||
| 568 | 581 | $tpl->redirect('translate.php?translang=' . $translang); |
| 569 | 582 | } |
| 570 | 583 | |
| 584 | +/** |
|
| 585 | + * @param string $dir |
|
| 586 | + */ |
|
| 571 | 587 | function enumSqlFiles($dir) |
| 572 | 588 | { |
| 573 | 589 | $retval = []; |
@@ -197,6 +197,9 @@ |
||
| 197 | 197 | return 0; |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | +/** |
|
| 201 | + * @param string $domain |
|
| 202 | + */ |
|
| 200 | 203 | function is_existent_maildomain($domain) |
| 201 | 204 | { |
| 202 | 205 | $smtp_serverlist = []; |