@@ -429,6 +429,10 @@ discard block |
||
429 | 429 | * @param array Array which is passed by reference and contains the an id per url to secure we will not crawl duplicates |
430 | 430 | * @param array Array which will be filled with URLS for download if flag is set. |
431 | 431 | * @param array Array of processing instructions |
432 | + * @param integer $scheduledTime |
|
433 | + * @param integer $reqMinute |
|
434 | + * @param boolean $submitCrawlUrls |
|
435 | + * @param boolean $downloadCrawlUrls |
|
432 | 436 | * @return string List of URLs (meant for display in backend module) |
433 | 437 | * |
434 | 438 | */ |
@@ -551,7 +555,7 @@ discard block |
||
551 | 555 | * |
552 | 556 | * @param string $piString PI to test |
553 | 557 | * @param array $incomingProcInstructions Processing instructions |
554 | - * @return boolean |
|
558 | + * @return boolean|null |
|
555 | 559 | */ |
556 | 560 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) |
557 | 561 | { |
@@ -763,6 +767,9 @@ discard block |
||
763 | 767 | return $baseUrl; |
764 | 768 | } |
765 | 769 | |
770 | + /** |
|
771 | + * @param integer $rootid |
|
772 | + */ |
|
766 | 773 | public function getConfigurationsForBranch($rootid, $depth) |
767 | 774 | { |
768 | 775 | $configurationsForBranch = []; |
@@ -984,7 +991,7 @@ discard block |
||
984 | 991 | * The number of URLs will be the multiplication of the number of parameter values for each key |
985 | 992 | * |
986 | 993 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
987 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
994 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
988 | 995 | * @return array |
989 | 996 | */ |
990 | 997 | public function compileUrls($paramArray, $urls = []) |
@@ -1720,6 +1727,7 @@ discard block |
||
1720 | 1727 | |
1721 | 1728 | /** |
1722 | 1729 | * @param message |
1730 | + * @param string $message |
|
1723 | 1731 | */ |
1724 | 1732 | protected function log($message) |
1725 | 1733 | { |
@@ -1737,7 +1745,7 @@ discard block |
||
1737 | 1745 | * @param array $url |
1738 | 1746 | * @param string $crawlerId |
1739 | 1747 | * |
1740 | - * @return array |
|
1748 | + * @return string[] |
|
1741 | 1749 | */ |
1742 | 1750 | protected function buildRequestHeaderArray(array $url, $crawlerId) |
1743 | 1751 | { |
@@ -1997,6 +2005,7 @@ discard block |
||
1997 | 2005 | * |
1998 | 2006 | * @param array Page row |
1999 | 2007 | * @param string Page icon and title for row |
2008 | + * @param string $pageTitleAndIcon |
|
2000 | 2009 | * @return string HTML <tr> content (one or more) |
2001 | 2010 | */ |
2002 | 2011 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) |
@@ -2281,7 +2290,7 @@ discard block |
||
2281 | 2290 | /** |
2282 | 2291 | * Function executed by crawler_im.php cli script. |
2283 | 2292 | * |
2284 | - * @return bool |
|
2293 | + * @return null|boolean |
|
2285 | 2294 | */ |
2286 | 2295 | public function CLI_main_flush() |
2287 | 2296 | { |
@@ -2342,7 +2351,7 @@ discard block |
||
2342 | 2351 | * @param int $countInARun |
2343 | 2352 | * @param int $sleepTime |
2344 | 2353 | * @param int $sleepAfterFinish |
2345 | - * @return string |
|
2354 | + * @return integer |
|
2346 | 2355 | */ |
2347 | 2356 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) |
2348 | 2357 | { |
@@ -2656,7 +2665,7 @@ discard block |
||
2656 | 2665 | /** |
2657 | 2666 | * @param bool $get_as_float |
2658 | 2667 | * |
2659 | - * @return mixed |
|
2668 | + * @return string |
|
2660 | 2669 | */ |
2661 | 2670 | protected function microtime($get_as_float = false) |
2662 | 2671 | { |
@@ -2787,7 +2796,7 @@ discard block |
||
2787 | 2796 | * Check whether the Crawling Protocol should be http or https |
2788 | 2797 | * |
2789 | 2798 | * @param $crawlerConfiguration |
2790 | - * @param $pageConfiguration |
|
2799 | + * @param boolean $pageConfiguration |
|
2791 | 2800 | * |
2792 | 2801 | * @return bool |
2793 | 2802 | */ |
@@ -209,7 +209,7 @@ |
||
209 | 209 | /** |
210 | 210 | * Determines if a page is queued |
211 | 211 | * |
212 | - * @param $uid |
|
212 | + * @param integer $uid |
|
213 | 213 | * @param bool $unprocessed_only |
214 | 214 | * @param bool $timed_only |
215 | 215 | * @param bool $timestamp |