@@ -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 | * |
@@ -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 |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | * |
425 | 425 | * @param string $piString PI to test |
426 | 426 | * @param array $incomingProcInstructions Processing instructions |
427 | - * @return boolean TRUE if found |
|
427 | + * @return boolean|null TRUE if found |
|
428 | 428 | */ |
429 | 429 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) { |
430 | 430 | if (empty($incomingProcInstructions)) { |
@@ -632,6 +632,9 @@ discard block |
||
632 | 632 | return $baseUrl; |
633 | 633 | } |
634 | 634 | |
635 | + /** |
|
636 | + * @param integer $rootid |
|
637 | + */ |
|
635 | 638 | function getConfigurationsForBranch($rootid, $depth) { |
636 | 639 | |
637 | 640 | $configurationsForBranch = array(); |
@@ -735,6 +738,7 @@ discard block |
||
735 | 738 | * |
736 | 739 | * @param array Array with key (GET var name) and values (value of GET var which is configuration for expansion) |
737 | 740 | * @param integer Current page ID |
741 | + * @param integer $pid |
|
738 | 742 | * @return array Array with key (GET var name) with the value being an array of all possible values for that key. |
739 | 743 | */ |
740 | 744 | function expandParameters($paramArray, $pid) { |
@@ -853,7 +857,7 @@ discard block |
||
853 | 857 | * The number of URLs will be the multiplication of the number of parameter values for each key |
854 | 858 | * |
855 | 859 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
856 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
860 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
857 | 861 | * @return array URLs accumulated, if number of urls exceed 'maxCompileUrls' it will return false as an error! |
858 | 862 | */ |
859 | 863 | public function compileUrls($paramArray, $urls = array()) { |
@@ -1031,6 +1035,8 @@ discard block |
||
1031 | 1035 | * @param integer Scheduled-time |
1032 | 1036 | * @param string (optional) configuration hash |
1033 | 1037 | * @param bool (optional) skip inner duplication check |
1038 | + * @param string $url |
|
1039 | + * @param double $tstamp |
|
1034 | 1040 | * @return bool true if the url was added, false if it already existed |
1035 | 1041 | */ |
1036 | 1042 | function addUrl ( |
@@ -1106,7 +1112,6 @@ discard block |
||
1106 | 1112 | * If the timestamp is in the future it will check, if the queued entry has exactly the same timestamp |
1107 | 1113 | * |
1108 | 1114 | * @param int $tstamp |
1109 | - * @param string $parameters |
|
1110 | 1115 | * @author Fabrizio Branca |
1111 | 1116 | * @author Timo Schmidt |
1112 | 1117 | * @return array; |
@@ -1470,6 +1475,7 @@ discard block |
||
1470 | 1475 | |
1471 | 1476 | /** |
1472 | 1477 | * @param message |
1478 | + * @param string $message |
|
1473 | 1479 | */ |
1474 | 1480 | protected function log($message) { |
1475 | 1481 | if (!empty($this->extensionSettings['logFileName'])) { |
@@ -1483,7 +1489,7 @@ discard block |
||
1483 | 1489 | * @param array $url |
1484 | 1490 | * @param string $crawlerId |
1485 | 1491 | * |
1486 | - * @return array |
|
1492 | + * @return string[] |
|
1487 | 1493 | */ |
1488 | 1494 | protected function buildRequestHeaderArray(array $url, $crawlerId) { |
1489 | 1495 | $reqHeaders = array(); |
@@ -1586,6 +1592,12 @@ discard block |
||
1586 | 1592 | * @param boolean If set (and submitcrawlUrls is false) will fill $downloadUrls with entries) |
1587 | 1593 | * @param array Array of processing instructions |
1588 | 1594 | * @param array Array of configuration keys |
1595 | + * @param integer $id |
|
1596 | + * @param integer $depth |
|
1597 | + * @param integer $scheduledTime |
|
1598 | + * @param integer $reqMinute |
|
1599 | + * @param boolean $submitCrawlUrls |
|
1600 | + * @param boolean $downloadCrawlUrls |
|
1589 | 1601 | * @return string HTML code |
1590 | 1602 | */ |
1591 | 1603 | function getPageTreeAndUrls( |
@@ -1740,6 +1752,7 @@ discard block |
||
1740 | 1752 | * |
1741 | 1753 | * @param array Page row |
1742 | 1754 | * @param string Page icon and title for row |
1755 | + * @param string $pageTitleAndIcon |
|
1743 | 1756 | * @return string HTML <tr> content (one or more) |
1744 | 1757 | */ |
1745 | 1758 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) { |
@@ -2040,7 +2053,7 @@ discard block |
||
2040 | 2053 | /** |
2041 | 2054 | * Function executed by crawler_im.php cli script. |
2042 | 2055 | * |
2043 | - * @return bool |
|
2056 | + * @return null|boolean |
|
2044 | 2057 | */ |
2045 | 2058 | function CLI_main_flush() { |
2046 | 2059 | $this->setAccessMode('cli_flush'); |
@@ -2097,7 +2110,7 @@ discard block |
||
2097 | 2110 | * @param int $countInARun |
2098 | 2111 | * @param int $sleepTime |
2099 | 2112 | * @param int $sleepAfterFinish |
2100 | - * @return string Status message |
|
2113 | + * @return integer Status message |
|
2101 | 2114 | */ |
2102 | 2115 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) { |
2103 | 2116 | $result = 0; |
@@ -2369,6 +2382,7 @@ discard block |
||
2369 | 2382 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout |
2370 | 2383 | * |
2371 | 2384 | * @param string identification string for the process |
2385 | + * @param string $pid |
|
2372 | 2386 | * @return boolean determines if the process is still active / has resources |
2373 | 2387 | * |
2374 | 2388 | * FIXME: Please remove Transaction, not needed as only a select query. |
@@ -2406,7 +2420,7 @@ discard block |
||
2406 | 2420 | /** |
2407 | 2421 | * @param bool $get_as_float |
2408 | 2422 | * |
2409 | - * @return mixed |
|
2423 | + * @return string |
|
2410 | 2424 | */ |
2411 | 2425 | protected function microtime($get_as_float = false ) |
2412 | 2426 | { |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | /** |
312 | 312 | * Returns a tag for the refresh icon |
313 | 313 | * |
314 | - * @return string |
|
314 | + * @return AOE\Crawler\Utility\ButtonUtility |
|
315 | 315 | */ |
316 | 316 | protected function getRefreshLink() |
317 | 317 | { |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | /** |
326 | 326 | * Returns a link for the panel to enable or disable the crawler |
327 | 327 | * |
328 | - * @return string |
|
328 | + * @return AOE\Crawler\Utility\ButtonUtility |
|
329 | 329 | */ |
330 | 330 | protected function getEnableDisableLink() |
331 | 331 | { |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | * |
352 | 352 | * @param void |
353 | 353 | * |
354 | - * @return string a-tag |
|
354 | + * @return AOE\Crawler\Utility\ButtonUtility|null a-tag |
|
355 | 355 | */ |
356 | 356 | protected function getModeLink() |
357 | 357 | { |