@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * @param string $mode |
96 | 96 | * @param string $modifiers |
97 | - * @return bool|string |
|
97 | + * @return false|string |
|
98 | 98 | */ |
99 | 99 | public function _getDelim($mode,$modifiers) { |
100 | 100 | $c = substr($modifiers,0,1); |
@@ -131,6 +131,14 @@ discard block |
||
131 | 131 | return $opt; |
132 | 132 | } |
133 | 133 | } |
134 | + |
|
135 | + /** |
|
136 | + * @param string $mode |
|
137 | + * @param false|string $delim |
|
138 | + * @param string $modifiers |
|
139 | + * |
|
140 | + * @return string |
|
141 | + */ |
|
134 | 142 | public function _getRemainModifiers($mode,$delim,$modifiers) { |
135 | 143 | if($delim) { |
136 | 144 | if($mode=='(') |
@@ -158,6 +166,9 @@ discard block |
||
158 | 166 | return substr($string,strpos($string, $delim)+$len); |
159 | 167 | } |
160 | 168 | |
169 | + /** |
|
170 | + * @param string $modifiers |
|
171 | + */ |
|
161 | 172 | public function splitEachModifiers($modifiers) { |
162 | 173 | $modx = evolutionCMS(); |
163 | 174 | |
@@ -227,6 +238,10 @@ discard block |
||
227 | 238 | return $result; |
228 | 239 | } |
229 | 240 | |
241 | + /** |
|
242 | + * @param string $key |
|
243 | + * @param string $value |
|
244 | + */ |
|
230 | 245 | public function parsePhx($key,$value,$modifiers) |
231 | 246 | { |
232 | 247 | $modx = evolutionCMS(); |
@@ -293,6 +308,10 @@ discard block |
||
293 | 308 | else return true; |
294 | 309 | } |
295 | 310 | |
311 | + /** |
|
312 | + * @param string $cmd |
|
313 | + * @param string $opt |
|
314 | + */ |
|
296 | 315 | public function getValueFromPreset($key, $value, $cmd, $opt) |
297 | 316 | { |
298 | 317 | $modx = evolutionCMS(); |
@@ -978,6 +997,9 @@ discard block |
||
978 | 997 | return $value; |
979 | 998 | } |
980 | 999 | |
1000 | + /** |
|
1001 | + * @param string $cmd |
|
1002 | + */ |
|
981 | 1003 | public function includeMdfFile($cmd) { |
982 | 1004 | $modx = evolutionCMS(); |
983 | 1005 | $key = $this->key; |
@@ -1133,6 +1155,10 @@ discard block |
||
1133 | 1155 | } |
1134 | 1156 | |
1135 | 1157 | // Sets a placeholder variable which can only be access by Modifiers |
1158 | + |
|
1159 | + /** |
|
1160 | + * @param string $value |
|
1161 | + */ |
|
1136 | 1162 | public function setModifiersVariable($key, $value) { |
1137 | 1163 | if ($key != 'phx' && $key != 'dummy') $this->placeholders[$key] = $value; |
1138 | 1164 | } |
@@ -130,7 +130,7 @@ |
||
130 | 130 | * duplicate of method in documentParser class |
131 | 131 | * |
132 | 132 | * @param string $propertyString |
133 | - * @return array |
|
133 | + * @return string |
|
134 | 134 | */ |
135 | 135 | function parseProperties($propertyString) { |
136 | 136 | $parameter= array (); |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * MODX_MANAGER_PATH."includes/extenders/ex_{$extname}.inc.php" |
277 | 277 | * $extname - extension name in lowercase |
278 | 278 | * |
279 | - * @param $extname |
|
279 | + * @param string $extname |
|
280 | 280 | * @param bool $reload |
281 | 281 | * @return bool |
282 | 282 | */ |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | * @param int $count_attempts |
320 | 320 | * @param string $type $type |
321 | 321 | * @param string $responseCode |
322 | - * @return bool|null |
|
322 | + * @return false|null |
|
323 | 323 | * @global string $base_url |
324 | 324 | * @global string $site_url |
325 | 325 | */ |
@@ -1021,7 +1021,7 @@ discard block |
||
1021 | 1021 | } |
1022 | 1022 | |
1023 | 1023 | /** |
1024 | - * @param $contents |
|
1024 | + * @param string $contents |
|
1025 | 1025 | * @return mixed |
1026 | 1026 | */ |
1027 | 1027 | public function RecoveryEscapedTags($contents) |
@@ -1045,7 +1045,7 @@ discard block |
||
1045 | 1045 | } |
1046 | 1046 | |
1047 | 1047 | /** |
1048 | - * @param $tstart |
|
1048 | + * @param double $tstart |
|
1049 | 1049 | * @return array |
1050 | 1050 | */ |
1051 | 1051 | public function getTimerStats($tstart) |
@@ -1813,7 +1813,7 @@ discard block |
||
1813 | 1813 | |
1814 | 1814 | /** |
1815 | 1815 | * Remove Comment-Tags from output like <!--@- Comment -@--> |
1816 | - * @param $content |
|
1816 | + * @param string $content |
|
1817 | 1817 | * @param string $left |
1818 | 1818 | * @param string $right |
1819 | 1819 | * @return mixed |
@@ -1986,7 +1986,7 @@ discard block |
||
1986 | 1986 | /** |
1987 | 1987 | * Run snippets as per the tags in $documentSource and replace the tags with the returned values. |
1988 | 1988 | * |
1989 | - * @param $content |
|
1989 | + * @param string $content |
|
1990 | 1990 | * @return string |
1991 | 1991 | * @internal param string $documentSource |
1992 | 1992 | */ |
@@ -3022,7 +3022,7 @@ discard block |
||
3022 | 3022 | |
3023 | 3023 | /** |
3024 | 3024 | * @param $templateID |
3025 | - * @return mixed |
|
3025 | + * @return string |
|
3026 | 3026 | */ |
3027 | 3027 | public function _getTemplateCodeFromDB($templateID) |
3028 | 3028 | { |
@@ -3065,7 +3065,7 @@ discard block |
||
3065 | 3065 | /** |
3066 | 3066 | * @param $id |
3067 | 3067 | * @param int $top |
3068 | - * @return mixed |
|
3068 | + * @return string |
|
3069 | 3069 | */ |
3070 | 3070 | public function getUltimateParentId($id, $top = 0) |
3071 | 3071 | { |
@@ -3396,7 +3396,7 @@ discard block |
||
3396 | 3396 | * |
3397 | 3397 | * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role |
3398 | 3398 | * @param int $id Element- / Resource-id |
3399 | - * @return bool |
|
3399 | + * @return false|null |
|
3400 | 3400 | */ |
3401 | 3401 | public function lockElement($type, $id) |
3402 | 3402 | { |
@@ -3418,7 +3418,7 @@ discard block |
||
3418 | 3418 | * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role |
3419 | 3419 | * @param int $id Element- / Resource-id |
3420 | 3420 | * @param bool $includeAllUsers true = Deletes not only own user-locks |
3421 | - * @return bool |
|
3421 | + * @return false|null |
|
3422 | 3422 | */ |
3423 | 3423 | public function unlockElement($type, $id, $includeAllUsers = false) |
3424 | 3424 | { |
@@ -3526,7 +3526,7 @@ discard block |
||
3526 | 3526 | * @param array $params |
3527 | 3527 | * @param string $msg |
3528 | 3528 | * @param array $files |
3529 | - * @return mixed |
|
3529 | + * @return boolean |
|
3530 | 3530 | */ |
3531 | 3531 | public function sendmail($params = array(), $msg = '', $files = array()) |
3532 | 3532 | { |
@@ -3930,7 +3930,7 @@ discard block |
||
3930 | 3930 | * Default: 1 |
3931 | 3931 | * @param string $fields List of fields |
3932 | 3932 | * Default: id, pagetitle, description, alias |
3933 | - * @return boolean|array |
|
3933 | + * @return string |
|
3934 | 3934 | */ |
3935 | 3935 | public function getPageInfo($pageid = -1, $active = 1, $fields = 'id, pagetitle, description, alias') |
3936 | 3936 | { |
@@ -4022,7 +4022,7 @@ discard block |
||
4022 | 4022 | * |
4023 | 4023 | * @param string $type |
4024 | 4024 | * @param bool $report |
4025 | - * @return bool |
|
4025 | + * @return boolean|null |
|
4026 | 4026 | */ |
4027 | 4027 | public function clearCache($type = '', $report = false) |
4028 | 4028 | { |
@@ -4389,7 +4389,7 @@ discard block |
||
4389 | 4389 | * - Placeholders prefix. Default: '{'. |
4390 | 4390 | * @param string $suffix {string} |
4391 | 4391 | * - Placeholders suffix. Default: '}'. |
4392 | - * @return bool|mixed|string {string; false} - Parsed chunk or false if $chunkArr is not array. |
|
4392 | + * @return false|string {string; false} - Parsed chunk or false if $chunkArr is not array. |
|
4393 | 4393 | * - Parsed chunk or false if $chunkArr is not array. |
4394 | 4394 | */ |
4395 | 4395 | public function parseChunk($chunkName, $chunkArr, $prefix = '{', $suffix = '}') |
@@ -5365,7 +5365,7 @@ discard block |
||
5365 | 5365 | * Remove event listener - only for use within the current execution cycle |
5366 | 5366 | * |
5367 | 5367 | * @param string $evtName |
5368 | - * @return boolean |
|
5368 | + * @return false|null |
|
5369 | 5369 | */ |
5370 | 5370 | public function removeEventListener($evtName) |
5371 | 5371 | { |
@@ -5389,7 +5389,7 @@ discard block |
||
5389 | 5389 | * |
5390 | 5390 | * @param string $evtName |
5391 | 5391 | * @param array $extParams Parameters available to plugins. Each array key will be the PHP variable name, and the array value will be the variable value. |
5392 | - * @return boolean|array |
|
5392 | + * @return false|null |
|
5393 | 5393 | */ |
5394 | 5394 | public function invokeEvent($evtName, $extParams = array()) |
5395 | 5395 | { |
@@ -5988,7 +5988,7 @@ discard block |
||
5988 | 5988 | |
5989 | 5989 | /** |
5990 | 5990 | * @param string $str |
5991 | - * @return bool|mixed|string |
|
5991 | + * @return string |
|
5992 | 5992 | */ |
5993 | 5993 | public function atBindFileContent($str = '') |
5994 | 5994 | { |
@@ -6039,8 +6039,8 @@ discard block |
||
6039 | 6039 | } |
6040 | 6040 | |
6041 | 6041 | /** |
6042 | - * @param $str |
|
6043 | - * @return bool|string |
|
6042 | + * @param string $str |
|
6043 | + * @return false|string |
|
6044 | 6044 | */ |
6045 | 6045 | public function getExtFromFilename($str) |
6046 | 6046 | { |
@@ -6068,7 +6068,7 @@ discard block |
||
6068 | 6068 | * @param string $text Error message |
6069 | 6069 | * @param string $file File where the error was detected |
6070 | 6070 | * @param string $line Line number within $file |
6071 | - * @return boolean |
|
6071 | + * @return boolean|null |
|
6072 | 6072 | */ |
6073 | 6073 | public function phpError($nr, $text, $file, $line) |
6074 | 6074 | { |
@@ -6120,7 +6120,7 @@ discard block |
||
6120 | 6120 | * @param string $text |
6121 | 6121 | * @param string $line |
6122 | 6122 | * @param string $output |
6123 | - * @return bool |
|
6123 | + * @return null|boolean |
|
6124 | 6124 | */ |
6125 | 6125 | public function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '') |
6126 | 6126 | { |
@@ -6542,7 +6542,7 @@ discard block |
||
6542 | 6542 | |
6543 | 6543 | /** |
6544 | 6544 | * @param string $str |
6545 | - * @return bool|mixed|string |
|
6545 | + * @return string |
|
6546 | 6546 | */ |
6547 | 6547 | public function atBindInclude($str = '') |
6548 | 6548 | { |
@@ -6593,7 +6593,7 @@ discard block |
||
6593 | 6593 | * @param $str |
6594 | 6594 | * @param int $flags |
6595 | 6595 | * @param string $encode |
6596 | - * @return mixed |
|
6596 | + * @return string |
|
6597 | 6597 | */ |
6598 | 6598 | public function htmlspecialchars($str, $flags = ENT_COMPAT, $encode = '') |
6599 | 6599 | { |
@@ -6602,7 +6602,7 @@ discard block |
||
6602 | 6602 | } |
6603 | 6603 | |
6604 | 6604 | /** |
6605 | - * @param $string |
|
6605 | + * @param string $string |
|
6606 | 6606 | * @param bool $returnData |
6607 | 6607 | * @return bool|mixed |
6608 | 6608 | */ |