@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | * @param string $piString PI to test |
| 421 | 421 | * @param array $incomingProcInstructions Processing instructions |
| 422 | 422 | * |
| 423 | - * @return boolean TRUE if found |
|
| 423 | + * @return boolean|null TRUE if found |
|
| 424 | 424 | */ |
| 425 | 425 | public function drawURLs_PIfilter($piString, array $incomingProcInstructions) { |
| 426 | 426 | if (empty($incomingProcInstructions)) { |
@@ -626,7 +626,7 @@ discard block |
||
| 626 | 626 | } |
| 627 | 627 | |
| 628 | 628 | /** |
| 629 | - * @param $rootId |
|
| 629 | + * @param integer $rootId |
|
| 630 | 630 | * @param $depth |
| 631 | 631 | * |
| 632 | 632 | * @return array |
@@ -732,6 +732,7 @@ discard block |
||
| 732 | 732 | * |
| 733 | 733 | * @param array Array with key (GET var name) and values (value of GET var which is configuration for expansion) |
| 734 | 734 | * @param integer Current page ID |
| 735 | + * @param integer $pid |
|
| 735 | 736 | * @return array Array with key (GET var name) with the value being an array of all possible values for that key. |
| 736 | 737 | */ |
| 737 | 738 | protected function expandParameters($paramArray, $pid) { |
@@ -850,7 +851,7 @@ discard block |
||
| 850 | 851 | * The number of URLs will be the multiplication of the number of parameter values for each key |
| 851 | 852 | * |
| 852 | 853 | * @param array $paramArray Output of expandParameters(): Array with keys (GET var names) and for each an array of values |
| 853 | - * @param array $urls URLs accumulated in this array (for recursion) |
|
| 854 | + * @param string[] $urls URLs accumulated in this array (for recursion) |
|
| 854 | 855 | * @return array URLs accumulated, if number of urls exceed 'maxCompileUrls' it will return false as an error! |
| 855 | 856 | */ |
| 856 | 857 | public function compileUrls($paramArray, $urls = array()) { |
@@ -1018,6 +1019,8 @@ discard block |
||
| 1018 | 1019 | * @param integer Scheduled-time |
| 1019 | 1020 | * @param string (optional) configuration hash |
| 1020 | 1021 | * @param bool (optional) skip inner duplication check |
| 1022 | + * @param string $url |
|
| 1023 | + * @param double $tstamp |
|
| 1021 | 1024 | * @return bool true if the url was added, false if it already existed |
| 1022 | 1025 | */ |
| 1023 | 1026 | protected function addUrl ( |
@@ -1457,6 +1460,7 @@ discard block |
||
| 1457 | 1460 | |
| 1458 | 1461 | /** |
| 1459 | 1462 | * @param message |
| 1463 | + * @param string $message |
|
| 1460 | 1464 | */ |
| 1461 | 1465 | protected function log($message) { |
| 1462 | 1466 | if (!empty($this->extensionSettings['logFileName'])) { |
@@ -1470,7 +1474,7 @@ discard block |
||
| 1470 | 1474 | * @param array $url |
| 1471 | 1475 | * @param string $crawlerId |
| 1472 | 1476 | * |
| 1473 | - * @return array |
|
| 1477 | + * @return string[] |
|
| 1474 | 1478 | */ |
| 1475 | 1479 | protected function buildRequestHeaderArray(array $url, $crawlerId) { |
| 1476 | 1480 | $reqHeaders = array(); |
@@ -1564,6 +1568,12 @@ discard block |
||
| 1564 | 1568 | * @param boolean If set (and submitcrawlUrls is false) will fill $downloadUrls with entries) |
| 1565 | 1569 | * @param array Array of processing instructions |
| 1566 | 1570 | * @param array Array of configuration keys |
| 1571 | + * @param integer $id |
|
| 1572 | + * @param integer $depth |
|
| 1573 | + * @param integer $scheduledTime |
|
| 1574 | + * @param integer $reqMinute |
|
| 1575 | + * @param boolean $submitCrawlUrls |
|
| 1576 | + * @param boolean $downloadCrawlUrls |
|
| 1567 | 1577 | * @return string HTML code |
| 1568 | 1578 | */ |
| 1569 | 1579 | function getPageTreeAndUrls( |
@@ -1712,6 +1722,7 @@ discard block |
||
| 1712 | 1722 | * |
| 1713 | 1723 | * @param array Page row |
| 1714 | 1724 | * @param string Page icon and title for row |
| 1725 | + * @param string $pageTitleAndIcon |
|
| 1715 | 1726 | * @return string HTML <tr> content (one or more) |
| 1716 | 1727 | */ |
| 1717 | 1728 | public function drawURLs_addRowsForPage(array $pageRow, $pageTitleAndIcon) { |
@@ -2012,7 +2023,7 @@ discard block |
||
| 2012 | 2023 | /** |
| 2013 | 2024 | * Function executed by crawler_im.php cli script. |
| 2014 | 2025 | * |
| 2015 | - * @return bool |
|
| 2026 | + * @return null|boolean |
|
| 2016 | 2027 | */ |
| 2017 | 2028 | function CLI_main_flush() { |
| 2018 | 2029 | $this->setAccessMode('cli_flush'); |
@@ -2069,7 +2080,7 @@ discard block |
||
| 2069 | 2080 | * @param int $countInARun |
| 2070 | 2081 | * @param int $sleepTime |
| 2071 | 2082 | * @param int $sleepAfterFinish |
| 2072 | - * @return string Status message |
|
| 2083 | + * @return integer Status message |
|
| 2073 | 2084 | */ |
| 2074 | 2085 | public function CLI_run($countInARun, $sleepTime, $sleepAfterFinish) { |
| 2075 | 2086 | $result = 0; |
@@ -2341,6 +2352,7 @@ discard block |
||
| 2341 | 2352 | * Used to determine timeouts and to ensure a proper cleanup if there's a timeout |
| 2342 | 2353 | * |
| 2343 | 2354 | * @param string identification string for the process |
| 2355 | + * @param string $pid |
|
| 2344 | 2356 | * @return boolean determines if the process is still active / has resources |
| 2345 | 2357 | * |
| 2346 | 2358 | * FIXME: Please remove Transaction, not needed as only a select query. |
@@ -2378,7 +2390,7 @@ discard block |
||
| 2378 | 2390 | /** |
| 2379 | 2391 | * @param bool $get_as_float |
| 2380 | 2392 | * |
| 2381 | - * @return mixed |
|
| 2393 | + * @return string |
|
| 2382 | 2394 | */ |
| 2383 | 2395 | protected function microtime($get_as_float = false ) |
| 2384 | 2396 | { |