@@ -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 = []; |
@@ -484,6 +484,9 @@ discard block |
||
484 | 484 | ); |
485 | 485 | } |
486 | 486 | |
487 | +/** |
|
488 | + * @param string $watchtext |
|
489 | + */ |
|
487 | 490 | function insert_maintenance_flags($rLog, $language, $watchtext) |
488 | 491 | { |
489 | 492 | global $translate; |
@@ -510,6 +513,9 @@ discard block |
||
510 | 513 | return mb_ereg_replace('{maintenance_flags}', $flagtext, $watchtext); |
511 | 514 | } |
512 | 515 | |
516 | +/** |
|
517 | + * @param string $domain |
|
518 | + */ |
|
513 | 519 | function is_existent_maildomain($domain) |
514 | 520 | { |
515 | 521 | $smtp_serverlist = []; |
@@ -61,6 +61,10 @@ discard block |
||
61 | 61 | |
62 | 62 | /* remove given file |
63 | 63 | */ |
64 | + |
|
65 | + /** |
|
66 | + * @param string $file |
|
67 | + */ |
|
64 | 68 | public function removeXML($file) |
65 | 69 | { |
66 | 70 | @unlink($file); |
@@ -68,6 +72,10 @@ discard block |
||
68 | 72 | |
69 | 73 | /* import the given XML file |
70 | 74 | */ |
75 | + |
|
76 | + /** |
|
77 | + * @param string $file |
|
78 | + */ |
|
71 | 79 | public function importXML($file) |
72 | 80 | { |
73 | 81 | global $opt; |
@@ -124,6 +132,9 @@ discard block |
||
124 | 132 | setSysConfig('geokrety_lastupdate', date($opt['db']['dateformat'], strtotime($startupdate))); |
125 | 133 | } |
126 | 134 | |
135 | + /** |
|
136 | + * @param DOMNode $element |
|
137 | + */ |
|
127 | 138 | public function importGeoKret($element) |
128 | 139 | { |
129 | 140 | global $opt; |
@@ -204,6 +215,9 @@ discard block |
||
204 | 215 | } |
205 | 216 | |
206 | 217 | |
218 | + /** |
|
219 | + * @param DOMNode $element |
|
220 | + */ |
|
207 | 221 | public function importMove($element) |
208 | 222 | { |
209 | 223 | global $opt; |
@@ -292,6 +306,9 @@ discard block |
||
292 | 306 | } |
293 | 307 | |
294 | 308 | |
309 | + /** |
|
310 | + * @param integer $id |
|
311 | + */ |
|
295 | 312 | public function checkGeoKretType($id, $name) |
296 | 313 | { |
297 | 314 | sql( |
@@ -302,6 +319,9 @@ discard block |
||
302 | 319 | } |
303 | 320 | |
304 | 321 | |
322 | + /** |
|
323 | + * @param integer $id |
|
324 | + */ |
|
305 | 325 | public function checkUser($id, $name) |
306 | 326 | { |
307 | 327 | if ($id == 0) { |
@@ -312,6 +332,9 @@ discard block |
||
312 | 332 | } |
313 | 333 | |
314 | 334 | |
335 | + /** |
|
336 | + * @param integer $id |
|
337 | + */ |
|
315 | 338 | public function checkMoveType($id, $name) |
316 | 339 | { |
317 | 340 | sql( |
@@ -322,6 +345,9 @@ discard block |
||
322 | 345 | } |
323 | 346 | |
324 | 347 | |
348 | + /** |
|
349 | + * @param string $element |
|
350 | + */ |
|
325 | 351 | public function GetNodeValue(&$domnode, $element) |
326 | 352 | { |
327 | 353 | $subnode = $domnode->getElementsByTagName($element); |
@@ -333,6 +359,12 @@ discard block |
||
333 | 359 | } |
334 | 360 | |
335 | 361 | |
362 | + /** |
|
363 | + * @param string $element |
|
364 | + * @param string $attr |
|
365 | + * |
|
366 | + * @return string |
|
367 | + */ |
|
336 | 368 | public function GetNodeAttribute(&$domnode, $element, $attr) |
337 | 369 | { |
338 | 370 | $subnode = $domnode->getElementsByTagName($element); |
@@ -61,6 +61,9 @@ |
||
61 | 61 | $this->ping_searchengine('http://www.bing.com/webmaster/ping.aspx?siteMap=' . $url); |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $url |
|
66 | + */ |
|
64 | 67 | public function ping_searchengine($url) |
65 | 68 | { |
66 | 69 | $curl = curl_init($url); |