@@ -396,6 +396,10 @@ discard block |
||
| 396 | 396 | * @param array Array which is passed by reference and contains the an id per url to secure we will not crawl duplicates |
| 397 | 397 | * @param array Array which will be filled with URLS for download if flag is set. |
| 398 | 398 | * @param array Array of processing instructions |
| 399 | + * @param integer $scheduledTime |
|
| 400 | + * @param integer $reqMinute |
|
| 401 | + * @param boolean $submitCrawlUrls |
|
| 402 | + * @param boolean $downloadCrawlUrls |
|
| 399 | 403 | * @return string List of URLs (meant for display in backend module) |
| 400 | 404 | * |
| 401 | 405 | */ |
@@ -520,7 +524,7 @@ discard block |
||
| 520 | 524 | * |
| 521 | 525 | * @param string $piString PI to test |
| 522 | 526 | * @param array $incomingProcInstructions Processing instructions |
| 523 | - * @return boolean |
|
| 527 | + * @return boolean|null |
|
| 524 | 528 | */ |
| 525 | 529 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) |
| 526 | 530 | { |
@@ -716,6 +720,9 @@ discard block |
||
| 716 | 720 | return $baseUrl; |
| 717 | 721 | } |
| 718 | 722 | |
| 723 | + /** |
|
| 724 | + * @param integer $rootid |
|
| 725 | + */ |
|
| 719 | 726 | public function getConfigurationsForBranch($rootid, $depth) |
| 720 | 727 | { |
| 721 | 728 | $configurationsForBranch = []; |
@@ -937,7 +944,7 @@ discard block |
||
| 937 | 944 | * The number of URLs will be the multiplication of the number of parameter values for each key |
| 938 | 945 | * |
| 939 | 946 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
| 940 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
| 947 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
| 941 | 948 | * @return array |
| 942 | 949 | */ |
| 943 | 950 | public function compileUrls($paramArray, $urls = []) |
@@ -1573,6 +1580,7 @@ discard block |
||
| 1573 | 1580 | |
| 1574 | 1581 | /** |
| 1575 | 1582 | * @param message |
| 1583 | + * @param string $message |
|
| 1576 | 1584 | */ |
| 1577 | 1585 | protected function log($message) |
| 1578 | 1586 | { |
@@ -1590,7 +1598,7 @@ discard block |
||
| 1590 | 1598 | * @param array $url |
| 1591 | 1599 | * @param string $crawlerId |
| 1592 | 1600 | * |
| 1593 | - * @return array |
|
| 1601 | + * @return string[] |
|
| 1594 | 1602 | */ |
| 1595 | 1603 | protected function buildRequestHeaderArray(array $url, $crawlerId) |
| 1596 | 1604 | { |
@@ -1850,6 +1858,7 @@ discard block |
||
| 1850 | 1858 | * |
| 1851 | 1859 | * @param array Page row |
| 1852 | 1860 | * @param string Page icon and title for row |
| 1861 | + * @param string $pageTitleAndIcon |
|
| 1853 | 1862 | * @return string HTML <tr> content (one or more) |
| 1854 | 1863 | */ |
| 1855 | 1864 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) |
@@ -2138,7 +2147,7 @@ discard block |
||
| 2138 | 2147 | /** |
| 2139 | 2148 | * Function executed by crawler_im.php cli script. |
| 2140 | 2149 | * |
| 2141 | - * @return bool |
|
| 2150 | + * @return null|boolean |
|
| 2142 | 2151 | */ |
| 2143 | 2152 | public function CLI_main_flush() |
| 2144 | 2153 | { |
@@ -2197,7 +2206,7 @@ discard block |
||
| 2197 | 2206 | * @param int $countInARun |
| 2198 | 2207 | * @param int $sleepTime |
| 2199 | 2208 | * @param int $sleepAfterFinish |
| 2200 | - * @return string |
|
| 2209 | + * @return integer |
|
| 2201 | 2210 | */ |
| 2202 | 2211 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) |
| 2203 | 2212 | { |
@@ -2475,6 +2484,7 @@ discard block |
||
| 2475 | 2484 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout |
| 2476 | 2485 | * |
| 2477 | 2486 | * @param string identification string for the process |
| 2487 | + * @param string $pid |
|
| 2478 | 2488 | * @return boolean determines if the process is still active / has resources |
| 2479 | 2489 | * |
| 2480 | 2490 | * FIXME: Please remove Transaction, not needed as only a select query. |
@@ -2515,7 +2525,7 @@ discard block |
||
| 2515 | 2525 | /** |
| 2516 | 2526 | * @param bool $get_as_float |
| 2517 | 2527 | * |
| 2518 | - * @return mixed |
|
| 2528 | + * @return string |
|
| 2519 | 2529 | */ |
| 2520 | 2530 | protected function microtime($get_as_float = false) |
| 2521 | 2531 | { |
@@ -2633,9 +2643,9 @@ discard block |
||
| 2633 | 2643 | } |
| 2634 | 2644 | |
| 2635 | 2645 | /** |
| 2636 | - * @param $forceSsl |
|
| 2646 | + * @param boolean $forceSsl |
|
| 2637 | 2647 | * @param $configurationRecord |
| 2638 | - * @param $TSparserObject |
|
| 2648 | + * @param \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser $TSparserObject |
|
| 2639 | 2649 | * @param $key |
| 2640 | 2650 | * @return array |
| 2641 | 2651 | */ |
@@ -2660,11 +2670,11 @@ discard block |
||
| 2660 | 2670 | } |
| 2661 | 2671 | |
| 2662 | 2672 | /** |
| 2663 | - * @param $id |
|
| 2673 | + * @param integer $id |
|
| 2664 | 2674 | * @param array $subCfg |
| 2665 | - * @param $tstamp |
|
| 2666 | - * @param $configurationHash |
|
| 2667 | - * @param $parameters_serialized |
|
| 2675 | + * @param integer $tstamp |
|
| 2676 | + * @param string $configurationHash |
|
| 2677 | + * @param string $parameters_serialized |
|
| 2668 | 2678 | * @return array |
| 2669 | 2679 | */ |
| 2670 | 2680 | protected function getFieldArray($id, array $subCfg, $tstamp, $configurationHash, $parameters_serialized) |
@@ -2684,8 +2694,8 @@ discard block |
||
| 2684 | 2694 | } |
| 2685 | 2695 | |
| 2686 | 2696 | /** |
| 2687 | - * @param $queueId |
|
| 2688 | - * @param $force |
|
| 2697 | + * @param integer $queueId |
|
| 2698 | + * @param boolean $force |
|
| 2689 | 2699 | * @return mixed |
| 2690 | 2700 | */ |
| 2691 | 2701 | protected function getEntry($queueId, $force) |
@@ -2699,7 +2709,7 @@ discard block |
||
| 2699 | 2709 | } |
| 2700 | 2710 | |
| 2701 | 2711 | /** |
| 2702 | - * @param $queueId |
|
| 2712 | + * @param integer $queueId |
|
| 2703 | 2713 | * @param $field_array |
| 2704 | 2714 | */ |
| 2705 | 2715 | private function updateQueueItem($queueId, $field_array) |