@@ -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. |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | } |
693 | 693 | |
694 | 694 | /** |
695 | - * @return bool|string |
|
695 | + * @return string|false |
|
696 | 696 | */ |
697 | 697 | public function getPageLink() |
698 | 698 | { |
@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | /** |
725 | 725 | * @param $tmpFile |
726 | 726 | * @param $longSideSize |
727 | - * @return bool |
|
727 | + * @return null|boolean |
|
728 | 728 | */ |
729 | 729 | public function rotate_and_shrink($tmpFile, $longSideSize) |
730 | 730 | { |
@@ -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 | { |
@@ -577,7 +577,7 @@ |
||
577 | 577 | } |
578 | 578 | |
579 | 579 | /** |
580 | - * @param $d |
|
580 | + * @param integer $d |
|
581 | 581 | * @param integer $n |
582 | 582 | * |
583 | 583 | * @return string |
@@ -802,6 +802,9 @@ |
||
802 | 802 | return ''; |
803 | 803 | } |
804 | 804 | |
805 | +/** |
|
806 | + * @return string |
|
807 | + */ |
|
805 | 808 | function get_logtype_name($logtype, $language) |
806 | 809 | { |
807 | 810 | return sqlValue( |
@@ -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); |
@@ -82,6 +82,10 @@ discard block |
||
82 | 82 | return preg_match("/^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$/", $datetime); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param integer $level |
|
87 | + * @param string $text |
|
88 | + */ |
|
85 | 89 | private static function message($level, $text) |
86 | 90 | { |
87 | 91 | echo str_repeat(' ', 2 * $level) . $text . "\n"; |
@@ -94,6 +98,11 @@ discard block |
||
94 | 98 | ' AND `' . $table . '`.`' . $field . "` <= '" . sql_escape($this->toDateTime) . "'"; |
95 | 99 | } |
96 | 100 | |
101 | + /** |
|
102 | + * @param string $table |
|
103 | + * @param string $dateField |
|
104 | + * @param string $description |
|
105 | + */ |
|
97 | 106 | private function showObjectCount($table, $dateField, $description, $andWhere = '') |
98 | 107 | { |
99 | 108 | $objectCount = sql_value( |