@@ -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 | { |
@@ -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 | */ |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * @param $processId |
|
| 63 | + * @param string $processId |
|
| 64 | 64 | */ |
| 65 | 65 | public function unsetQueueProcessId($processId) |
| 66 | 66 | { |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | /** |
| 439 | 439 | * Determines if a page is queued |
| 440 | 440 | * |
| 441 | - * @param $uid |
|
| 441 | + * @param integer $uid |
|
| 442 | 442 | * @param bool $unprocessed_only |
| 443 | 443 | * @param bool $timed_only |
| 444 | 444 | * @param bool $timestamp |
@@ -436,6 +436,10 @@ discard block |
||
| 436 | 436 | * @param array Array which is passed by reference and contains the an id per url to secure we will not crawl duplicates |
| 437 | 437 | * @param array Array which will be filled with URLS for download if flag is set. |
| 438 | 438 | * @param array Array of processing instructions |
| 439 | + * @param integer $scheduledTime |
|
| 440 | + * @param integer $reqMinute |
|
| 441 | + * @param boolean $submitCrawlUrls |
|
| 442 | + * @param boolean $downloadCrawlUrls |
|
| 439 | 443 | * @return string List of URLs (meant for display in backend module) |
| 440 | 444 | * |
| 441 | 445 | */ |
@@ -560,7 +564,7 @@ discard block |
||
| 560 | 564 | * |
| 561 | 565 | * @param string $piString PI to test |
| 562 | 566 | * @param array $incomingProcInstructions Processing instructions |
| 563 | - * @return boolean |
|
| 567 | + * @return boolean|null |
|
| 564 | 568 | */ |
| 565 | 569 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) |
| 566 | 570 | { |
@@ -781,7 +785,7 @@ discard block |
||
| 781 | 785 | } |
| 782 | 786 | |
| 783 | 787 | /** |
| 784 | - * @param $rootid |
|
| 788 | + * @param integer $rootid |
|
| 785 | 789 | * @param $depth |
| 786 | 790 | * @return array |
| 787 | 791 | * |
@@ -1043,7 +1047,7 @@ discard block |
||
| 1043 | 1047 | * The number of URLs will be the multiplication of the number of parameter values for each key |
| 1044 | 1048 | * |
| 1045 | 1049 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
| 1046 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
| 1050 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
| 1047 | 1051 | * @return array |
| 1048 | 1052 | */ |
| 1049 | 1053 | public function compileUrls($paramArray, $urls = []) |
@@ -1780,6 +1784,7 @@ discard block |
||
| 1780 | 1784 | |
| 1781 | 1785 | /** |
| 1782 | 1786 | * @param message |
| 1787 | + * @param string $message |
|
| 1783 | 1788 | */ |
| 1784 | 1789 | protected function log($message) |
| 1785 | 1790 | { |
@@ -1797,7 +1802,7 @@ discard block |
||
| 1797 | 1802 | * @param array $url |
| 1798 | 1803 | * @param string $crawlerId |
| 1799 | 1804 | * |
| 1800 | - * @return array |
|
| 1805 | + * @return string[] |
|
| 1801 | 1806 | */ |
| 1802 | 1807 | protected function buildRequestHeaderArray(array $url, $crawlerId) |
| 1803 | 1808 | { |
@@ -2074,6 +2079,7 @@ discard block |
||
| 2074 | 2079 | * |
| 2075 | 2080 | * @param array Page row |
| 2076 | 2081 | * @param string Page icon and title for row |
| 2082 | + * @param string $pageTitleAndIcon |
|
| 2077 | 2083 | * @return string HTML <tr> content (one or more) |
| 2078 | 2084 | */ |
| 2079 | 2085 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) |
@@ -2436,7 +2442,7 @@ discard block |
||
| 2436 | 2442 | * @param int $countInARun |
| 2437 | 2443 | * @param int $sleepTime |
| 2438 | 2444 | * @param int $sleepAfterFinish |
| 2439 | - * @return string |
|
| 2445 | + * @return integer |
|
| 2440 | 2446 | */ |
| 2441 | 2447 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) |
| 2442 | 2448 | { |
@@ -2761,6 +2767,7 @@ discard block |
||
| 2761 | 2767 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout |
| 2762 | 2768 | * |
| 2763 | 2769 | * @param string identification string for the process |
| 2770 | + * @param string $pid |
|
| 2764 | 2771 | * @return boolean determines if the process is still active / has resources |
| 2765 | 2772 | * |
| 2766 | 2773 | * TODO: Please consider moving this to Domain Model for Process or in ProcessRepository |
@@ -2801,7 +2808,7 @@ discard block |
||
| 2801 | 2808 | /** |
| 2802 | 2809 | * @param bool $get_as_float |
| 2803 | 2810 | * |
| 2804 | - * @return mixed |
|
| 2811 | + * @return string |
|
| 2805 | 2812 | */ |
| 2806 | 2813 | protected function microtime($get_as_float = false) |
| 2807 | 2814 | { |
@@ -2922,7 +2929,7 @@ discard block |
||
| 2922 | 2929 | * Check whether the Crawling Protocol should be http or https |
| 2923 | 2930 | * |
| 2924 | 2931 | * @param $crawlerConfiguration |
| 2925 | - * @param $pageConfiguration |
|
| 2932 | + * @param boolean $pageConfiguration |
|
| 2926 | 2933 | * |
| 2927 | 2934 | * @return bool |
| 2928 | 2935 | */ |