@@ -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 | { |