@@ -53,7 +53,7 @@ |
||
53 | 53 | * @param string $uri |
54 | 54 | * @param TypoScriptFrontendController $frontend |
55 | 55 | * |
56 | - * @return array |
|
56 | + * @return string[] |
|
57 | 57 | * |
58 | 58 | * @throws \Exception |
59 | 59 | * |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | /** |
358 | 358 | * Returns a tag for the refresh icon |
359 | 359 | * |
360 | - * @return string |
|
360 | + * @return ButtonUtility |
|
361 | 361 | */ |
362 | 362 | protected function getRefreshLink() |
363 | 363 | { |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | /** |
372 | 372 | * Returns a link for the panel to enable or disable the crawler |
373 | 373 | * |
374 | - * @return string |
|
374 | + * @return ButtonUtility |
|
375 | 375 | */ |
376 | 376 | protected function getEnableDisableLink() |
377 | 377 | { |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | * |
398 | 398 | * @param void |
399 | 399 | * |
400 | - * @return string a-tag |
|
400 | + * @return ButtonUtility|null a-tag |
|
401 | 401 | */ |
402 | 402 | protected function getModeLink() |
403 | 403 | { |
@@ -395,6 +395,10 @@ discard block |
||
395 | 395 | * @param array Array which is passed by reference and contains the an id per url to secure we will not crawl duplicates |
396 | 396 | * @param array Array which will be filled with URLS for download if flag is set. |
397 | 397 | * @param array Array of processing instructions |
398 | + * @param integer $scheduledTime |
|
399 | + * @param integer $reqMinute |
|
400 | + * @param boolean $submitCrawlUrls |
|
401 | + * @param boolean $downloadCrawlUrls |
|
398 | 402 | * @return string List of URLs (meant for display in backend module) |
399 | 403 | * |
400 | 404 | */ |
@@ -519,7 +523,7 @@ discard block |
||
519 | 523 | * |
520 | 524 | * @param string $piString PI to test |
521 | 525 | * @param array $incomingProcInstructions Processing instructions |
522 | - * @return boolean |
|
526 | + * @return boolean|null |
|
523 | 527 | */ |
524 | 528 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) |
525 | 529 | { |
@@ -729,6 +733,9 @@ discard block |
||
729 | 733 | return $baseUrl; |
730 | 734 | } |
731 | 735 | |
736 | + /** |
|
737 | + * @param integer $rootid |
|
738 | + */ |
|
732 | 739 | public function getConfigurationsForBranch($rootid, $depth) |
733 | 740 | { |
734 | 741 | $configurationsForBranch = []; |
@@ -950,7 +957,7 @@ discard block |
||
950 | 957 | * The number of URLs will be the multiplication of the number of parameter values for each key |
951 | 958 | * |
952 | 959 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
953 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
960 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
954 | 961 | * @return array |
955 | 962 | */ |
956 | 963 | public function compileUrls($paramArray, $urls = []) |
@@ -1602,6 +1609,7 @@ discard block |
||
1602 | 1609 | |
1603 | 1610 | /** |
1604 | 1611 | * @param message |
1612 | + * @param string $message |
|
1605 | 1613 | */ |
1606 | 1614 | protected function log($message) |
1607 | 1615 | { |
@@ -1616,7 +1624,7 @@ discard block |
||
1616 | 1624 | * @param array $url |
1617 | 1625 | * @param string $crawlerId |
1618 | 1626 | * |
1619 | - * @return array |
|
1627 | + * @return string[] |
|
1620 | 1628 | */ |
1621 | 1629 | protected function buildRequestHeaderArray(array $url, $crawlerId) |
1622 | 1630 | { |
@@ -1874,6 +1882,7 @@ discard block |
||
1874 | 1882 | * |
1875 | 1883 | * @param array Page row |
1876 | 1884 | * @param string Page icon and title for row |
1885 | + * @param string $pageTitleAndIcon |
|
1877 | 1886 | * @return string HTML <tr> content (one or more) |
1878 | 1887 | */ |
1879 | 1888 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) |
@@ -2163,7 +2172,7 @@ discard block |
||
2163 | 2172 | /** |
2164 | 2173 | * Function executed by crawler_im.php cli script. |
2165 | 2174 | * |
2166 | - * @return bool |
|
2175 | + * @return null|boolean |
|
2167 | 2176 | */ |
2168 | 2177 | public function CLI_main_flush() |
2169 | 2178 | { |
@@ -2222,7 +2231,7 @@ discard block |
||
2222 | 2231 | * @param int $countInARun |
2223 | 2232 | * @param int $sleepTime |
2224 | 2233 | * @param int $sleepAfterFinish |
2225 | - * @return string |
|
2234 | + * @return integer |
|
2226 | 2235 | */ |
2227 | 2236 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) |
2228 | 2237 | { |
@@ -2497,6 +2506,7 @@ discard block |
||
2497 | 2506 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout |
2498 | 2507 | * |
2499 | 2508 | * @param string identification string for the process |
2509 | + * @param string $pid |
|
2500 | 2510 | * @return boolean determines if the process is still active / has resources |
2501 | 2511 | * |
2502 | 2512 | * FIXME: Please remove Transaction, not needed as only a select query. |
@@ -2537,7 +2547,7 @@ discard block |
||
2537 | 2547 | /** |
2538 | 2548 | * @param bool $get_as_float |
2539 | 2549 | * |
2540 | - * @return mixed |
|
2550 | + * @return string |
|
2541 | 2551 | */ |
2542 | 2552 | protected function microtime($get_as_float = false) |
2543 | 2553 | { |
@@ -117,7 +117,7 @@ |
||
117 | 117 | /** |
118 | 118 | * Mark current value as selected by returning the "selected" attribute |
119 | 119 | * |
120 | - * @param array $configurationArray |
|
120 | + * @param string $configurationArray |
|
121 | 121 | * @param string $currentValue |
122 | 122 | * |
123 | 123 | * @return string |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | /** |
224 | 224 | * Determines if a page is queued |
225 | 225 | * |
226 | - * @param $uid |
|
226 | + * @param integer $uid |
|
227 | 227 | * @param bool $unprocessed_only |
228 | 228 | * @param bool $timed_only |
229 | 229 | * @param bool $timestamp |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | * scheduled but have note been crawled yet. |
305 | 305 | * |
306 | 306 | * @param int $uid uid of the page |
307 | - * @param bool $limit |
|
307 | + * @param integer $limit |
|
308 | 308 | * |
309 | 309 | * @return array array with the crawl-history of a page => 0 : scheduled time , 1 : executed_time, 2 : set_id |
310 | 310 | */ |