@@ -228,6 +228,9 @@ |
||
| 228 | 228 | return $str; |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | +/** |
|
| 232 | + * @param string $str |
|
| 233 | + */ |
|
| 231 | 234 | function lf2crlf($str) |
| 232 | 235 | { |
| 233 | 236 | return mb_ereg_replace("\r\r\n", "\r\n", mb_ereg_replace("\n", "\r\n", $str)); |
@@ -28,6 +28,9 @@ discard block |
||
| 28 | 28 | $this->translator = $this->initTranslator($translator); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param boolean $request |
|
| 33 | + */ |
|
| 31 | 34 | private function initRequest($request) |
| 32 | 35 | { |
| 33 | 36 | if ($request) { |
@@ -37,6 +40,9 @@ discard block |
||
| 37 | 40 | return new RequestHttp(); |
| 38 | 41 | } |
| 39 | 42 | |
| 43 | + /** |
|
| 44 | + * @param boolean $translator |
|
| 45 | + */ |
|
| 40 | 46 | private function initTranslator($translator) |
| 41 | 47 | { |
| 42 | 48 | if ($translator) { |
@@ -113,6 +113,11 @@ discard block |
||
| 113 | 113 | return $this->nOptions[$pId]['internal_use']; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | + /** |
|
| 117 | + * @param integer $pId |
|
| 118 | + * |
|
| 119 | + * @return string |
|
| 120 | + */ |
|
| 116 | 121 | public function getOptValue($pId) |
| 117 | 122 | { |
| 118 | 123 | if ($pId == USR_OPT_SHOWSTATS && |
@@ -129,6 +134,9 @@ discard block |
||
| 129 | 134 | return false; |
| 130 | 135 | } |
| 131 | 136 | |
| 137 | + /** |
|
| 138 | + * @param integer $pValue |
|
| 139 | + */ |
|
| 132 | 140 | public function setOptVisible($pId, $pValue) |
| 133 | 141 | { |
| 134 | 142 | $pId += 0; |
@@ -34,8 +34,7 @@ |
||
| 34 | 34 | public $cdir = []; |
| 35 | 35 | |
| 36 | 36 | /** constructor |
| 37 | - |
|
| 38 | -* |
|
| 37 | + * |
|
| 39 | 38 | *@param string $zipFile if not empty must contain path to valid zip file, ss_zip will try to open and parse it. |
| 40 | 39 | * If this parameter is empty, the new empty zip archive is created. This parameter has no meaning in |
| 41 | 40 | * LIGHT verion, please upgrade to PROfessional version. |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | 207 | * @param string $str |
| 208 | - * @return mixed |
|
| 208 | + * @return string |
|
| 209 | 209 | */ |
| 210 | 210 | function lf2crlf($str) |
| 211 | 211 | { |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | 'SELECT COUNT(*) |
| 101 | 101 | FROM `' . $table . '` |
| 102 | 102 | WHERE ' . $this->getDateCondition($table, $dateField) . |
| 103 | - ($andWhere ? ' AND (' . $andWhere . ')' : ''), |
|
| 103 | + ($andWhere ? ' AND (' . $andWhere . ')' : ''), |
|
| 104 | 104 | 0 |
| 105 | 105 | ); |
| 106 | 106 | self::message(1, $objectCount . ' ' . $description); |
@@ -81,6 +81,10 @@ discard block |
||
| 81 | 81 | return preg_match('/^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$/', $datetime); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param integer $level |
|
| 86 | + * @param string $text |
|
| 87 | + */ |
|
| 84 | 88 | private static function message($level, $text) |
| 85 | 89 | { |
| 86 | 90 | echo str_repeat(' ', 2 * $level) . $text . "\n"; |
@@ -93,6 +97,11 @@ discard block |
||
| 93 | 97 | ' AND `' . $table . '`.`' . $field . "` <= '" . sql_escape($this->toDateTime) . "'"; |
| 94 | 98 | } |
| 95 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $table |
|
| 102 | + * @param string $dateField |
|
| 103 | + * @param string $description |
|
| 104 | + */ |
|
| 96 | 105 | private function showObjectCount($table, $dateField, $description, $andWhere = '') |
| 97 | 106 | { |
| 98 | 107 | $objectCount = sql_value( |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * language specific vars |
| 12 | 12 | ****************************************************************************/ |
| 13 | 13 | |
| 14 | - $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
| 14 | + $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
| 15 | 15 | |
| 16 | - $commit = t('the cache description has been deleted'); |
|
| 17 | - $commit_title = t('delete this cache-description'); |
|
| 16 | + $commit = t('the cache description has been deleted'); |
|
| 17 | + $commit_title = t('delete this cache-description'); |
|
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @param $userCountry |
|
| 20 | + * @param string $userCountry |
|
| 21 | 21 | */ |
| 22 | 22 | public function set_userCountry($userCountry) |
| 23 | 23 | { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @param string $type type of the "new"-information, i.e. cache, event, rating, etc |
| 43 | 43 | * @param array $args numeric array containing the parameter for "sql_slave" |
| 44 | - * @return object mysql result used by smarty assign_rs |
|
| 44 | + * @return resource|null mysql result used by smarty assign_rs |
|
| 45 | 45 | */ |
| 46 | 46 | public function rsForSmarty($type, $args = null) |
| 47 | 47 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * cacheRs executes the database statements for type "cache" |
| 90 | 90 | * |
| 91 | 91 | * @param array $args numeric array containing the parameter for "sql_slave" |
| 92 | - * @return object mysql result used by smarty assign_rs |
|
| 92 | + * @return resource mysql result used by smarty assign_rs |
|
| 93 | 93 | */ |
| 94 | 94 | private function cacheRs($args = null) |
| 95 | 95 | { |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * eventRs executes the database statements for type "event" |
| 144 | 144 | * |
| 145 | 145 | * @param array $args numeric array containing the parameter for "sql_slave" |
| 146 | - * @return object mysql result used by smarty assign_rs |
|
| 146 | + * @return resource mysql result used by smarty assign_rs |
|
| 147 | 147 | */ |
| 148 | 148 | private function eventRs($args = null) |
| 149 | 149 | { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | * ratingRs executes the database statements for type "rating" |
| 216 | 216 | * |
| 217 | 217 | * @param array $args numeric array containing the parameter for "sql_slave" |
| 218 | - * @return object mysql result used by smarty assign_rs |
|
| 218 | + * @return resource mysql result used by smarty assign_rs |
|
| 219 | 219 | */ |
| 220 | 220 | private function ratingRs($args = null) |
| 221 | 221 | { |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * Use {page} in link_url als placeholder for the selected page number |
| 22 | 22 | * and/or {offset} for the 0-based data offset of the selected page. |
| 23 | 23 | * |
| 24 | - * @param $link_url |
|
| 24 | + * @param string $link_url |
|
| 25 | 25 | * @param int $min_pages_shown |
| 26 | 26 | * @param int $max_pages_shown |
| 27 | 27 | */ |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @param $current_page |
|
| 42 | - * @param $total_pages |
|
| 41 | + * @param double $current_page |
|
| 42 | + * @param double $total_pages |
|
| 43 | 43 | * @param bool $page_size |
| 44 | 44 | */ |
| 45 | 45 | public function make_from_pagenr($current_page, $total_pages, $page_size = false) |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * @param $page |
| 113 | - * @param $page_size |
|
| 113 | + * @param boolean $page_size |
|
| 114 | 114 | * |
| 115 | 115 | * @return string |
| 116 | 116 | */ |