@@ -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) { |
@@ -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(); |