@@ -76,6 +76,10 @@ discard block |
||
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $sCode |
|
81 | + * @param integer $nStartSearch |
|
82 | + */ |
|
79 | 83 | public function findEndOfPHPString($sCode, $nStartSearch) |
80 | 84 | { |
81 | 85 | $nEnd = 0; |
@@ -116,6 +120,10 @@ discard block |
||
116 | 120 | } |
117 | 121 | |
118 | 122 | // TODO: performance ... scan once at __construct and store line positions |
123 | + |
|
124 | + /** |
|
125 | + * @param integer $nPos |
|
126 | + */ |
|
119 | 127 | public function findLineOfPos($nPos) |
120 | 128 | { |
121 | 129 | $nLine = 1; |
@@ -246,11 +246,21 @@ discard block |
||
246 | 246 | return $ret; |
247 | 247 | } |
248 | 248 | |
249 | +/** |
|
250 | + * @param string $name |
|
251 | + * @param string $default |
|
252 | + * |
|
253 | + * @return string |
|
254 | + */ |
|
249 | 255 | function getSysConfig($name, $default) |
250 | 256 | { |
251 | 257 | return sql_value("SELECT `value` FROM `sysconfig` WHERE `name`='&1'", $default, $name); |
252 | 258 | } |
253 | 259 | |
260 | +/** |
|
261 | + * @param string $name |
|
262 | + * @param string $value |
|
263 | + */ |
|
254 | 264 | function setSysConfig($name, $value) |
255 | 265 | { |
256 | 266 | sql( |
@@ -333,6 +343,9 @@ discard block |
||
333 | 343 | } |
334 | 344 | |
335 | 345 | |
346 | +/** |
|
347 | + * @return string |
|
348 | + */ |
|
336 | 349 | function escape_javascript($text) |
337 | 350 | { |
338 | 351 | return str_replace('\'', '\\\'', str_replace('"', '"', $text)); |
@@ -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) { |
@@ -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 = []; |