@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | */ |
344 | 344 | protected function getRefreshLink() |
345 | 345 | { |
346 | - return '<input onclick="window.location=\'' . \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_info') . '&SET[crawlaction]=multiprocess&id=' . $this->pageId . '\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'arrow_refresh.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.refresh') . '" />'; |
|
346 | + return '<input onclick="window.location=\''.\TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_info').'&SET[crawlaction]=multiprocess&id='.$this->pageId.'\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'arrow_refresh.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.refresh').'" />'; |
|
347 | 347 | } |
348 | 348 | |
349 | 349 | /** |
@@ -364,9 +364,9 @@ discard block |
||
364 | 364 | protected function getEnableDisableLink() |
365 | 365 | { |
366 | 366 | if ($this->getIsCrawlerEnabled()) { |
367 | - return '<input onclick="window.location+=\'&action=stopCrawling\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'control_stop_blue.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.disablecrawling') . '" />'; |
|
367 | + return '<input onclick="window.location+=\'&action=stopCrawling\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'control_stop_blue.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.disablecrawling').'" />'; |
|
368 | 368 | } else { |
369 | - return '<input onclick="window.location+=\'&action=resumeCrawling\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'control_play.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.enablecrawling') . '" />'; |
|
369 | + return '<input onclick="window.location+=\'&action=resumeCrawling\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'control_play.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.enablecrawling').'" />'; |
|
370 | 370 | } |
371 | 371 | } |
372 | 372 | |
@@ -379,9 +379,9 @@ discard block |
||
379 | 379 | protected function getModeLink() |
380 | 380 | { |
381 | 381 | if ($this->getMode() == 'detail') { |
382 | - return '<input onclick="window.location+=\'&SET[processListMode]=simple\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'arrow_in.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.show.running') . '" />'; |
|
382 | + return '<input onclick="window.location+=\'&SET[processListMode]=simple\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'arrow_in.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.show.running').'" />'; |
|
383 | 383 | } elseif ($this->getMode() == 'simple') { |
384 | - return '<input onclick="window.location+=\'&SET[processListMode]=detail\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'arrow_out.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.show.all') . '" />'; |
|
384 | + return '<input onclick="window.location+=\'&SET[processListMode]=detail\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'arrow_out.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.show.all').'" />'; |
|
385 | 385 | } |
386 | 386 | } |
387 | 387 | |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | protected function getAddLink() |
395 | 395 | { |
396 | 396 | if ($this->getActiveProcessCount() < $this->getMaxActiveProcessCount() && $this->getIsCrawlerEnabled()) { |
397 | - return '<input onclick="window.location+=\'&action=addProcess\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'add.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.process.add') . '" />'; |
|
397 | + return '<input onclick="window.location+=\'&action=addProcess\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'add.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.process.add').'" />'; |
|
398 | 398 | } else { |
399 | 399 | return ''; |
400 | 400 | } |
@@ -416,12 +416,12 @@ discard block |
||
416 | 416 | * @param string $icon |
417 | 417 | * @return string html tag for icon |
418 | 418 | */ |
419 | - protected function getIcon($icon, $title='') |
|
419 | + protected function getIcon($icon, $title = '') |
|
420 | 420 | { |
421 | 421 | if (!empty($title)) { |
422 | 422 | $title = ' title="'.$title.'"'; |
423 | 423 | } |
424 | - return '<img src="'.$this->getIconPath().$icon.'.png" ' . $title . ' />'; |
|
424 | + return '<img src="'.$this->getIconPath().$icon.'.png" '.$title.' />'; |
|
425 | 425 | } |
426 | 426 | |
427 | 427 | /** |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | */ |
201 | 201 | |
202 | 202 | // Additional menus for the log type: |
203 | - if ($this->pObj->MOD_SETTINGS['crawlaction']==='log') { |
|
203 | + if ($this->pObj->MOD_SETTINGS['crawlaction'] === 'log') { |
|
204 | 204 | $h_func .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu( |
205 | 205 | $this->pObj->id, |
206 | 206 | 'SET[depth]', |
@@ -209,15 +209,15 @@ discard block |
||
209 | 209 | 'index.php' |
210 | 210 | ); |
211 | 211 | |
212 | - $quiPart = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('qid_details') ? '&qid_details=' . intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('qid_details')) : ''; |
|
212 | + $quiPart = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('qid_details') ? '&qid_details='.intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('qid_details')) : ''; |
|
213 | 213 | |
214 | 214 | $setId = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('setID')); |
215 | 215 | |
216 | - $h_func.= '<hr/>'. |
|
217 | - $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.display').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, 'SET[log_display]', $this->pObj->MOD_SETTINGS['log_display'], $this->pObj->MOD_MENU['log_display'], 'index.php', '&setID='.$setId) . ' - ' . |
|
218 | - $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.showresultlog').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[log_resultLog]', $this->pObj->MOD_SETTINGS['log_resultLog'], 'index.php', '&setID='.$setId . $quiPart) . ' - ' . |
|
219 | - $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.showfevars').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[log_feVars]', $this->pObj->MOD_SETTINGS['log_feVars'], 'index.php', '&setID='.$setId . $quiPart) . ' - ' . |
|
220 | - $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.itemsPerPage').': ' . |
|
216 | + $h_func .= '<hr/>'. |
|
217 | + $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.display').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, 'SET[log_display]', $this->pObj->MOD_SETTINGS['log_display'], $this->pObj->MOD_MENU['log_display'], 'index.php', '&setID='.$setId).' - '. |
|
218 | + $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.showresultlog').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[log_resultLog]', $this->pObj->MOD_SETTINGS['log_resultLog'], 'index.php', '&setID='.$setId.$quiPart).' - '. |
|
219 | + $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.showfevars').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[log_feVars]', $this->pObj->MOD_SETTINGS['log_feVars'], 'index.php', '&setID='.$setId.$quiPart).' - '. |
|
220 | + $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.itemsPerPage').': '. |
|
221 | 221 | \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu( |
222 | 222 | $this->pObj->id, |
223 | 223 | 'SET[itemsPerPage]', |
@@ -227,11 +227,11 @@ discard block |
||
227 | 227 | ); |
228 | 228 | } |
229 | 229 | |
230 | - $theOutput= $this->pObj->doc->spacer(5); |
|
231 | - $theOutput.= $this->pObj->doc->section($LANG->getLL('title'), $h_func, 0, 1); |
|
230 | + $theOutput = $this->pObj->doc->spacer(5); |
|
231 | + $theOutput .= $this->pObj->doc->section($LANG->getLL('title'), $h_func, 0, 1); |
|
232 | 232 | |
233 | 233 | // Branch based on type: |
234 | - switch ((string)$this->pObj->MOD_SETTINGS['crawlaction']) { |
|
234 | + switch ((string) $this->pObj->MOD_SETTINGS['crawlaction']) { |
|
235 | 235 | case 'start': |
236 | 236 | if (empty($this->pObj->id)) { |
237 | 237 | $this->addErrorMessage($GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.noPageSelected')); |
@@ -289,12 +289,12 @@ discard block |
||
289 | 289 | $this->downloadCrawlUrls = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('_download'); |
290 | 290 | $this->makeCrawlerProcessableChecks(); |
291 | 291 | |
292 | - switch ((string)\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('tstamp')) { |
|
292 | + switch ((string) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('tstamp')) { |
|
293 | 293 | case 'midnight': |
294 | 294 | $this->scheduledTime = mktime(0, 0, 0); |
295 | 295 | break; |
296 | 296 | case '04:00': |
297 | - $this->scheduledTime = mktime(0, 0, 0)+4*3600; |
|
297 | + $this->scheduledTime = mktime(0, 0, 0) + 4 * 3600; |
|
298 | 298 | break; |
299 | 299 | case 'now': |
300 | 300 | default: |
@@ -314,9 +314,9 @@ discard block |
||
314 | 314 | $this->crawlerObj->setID = \TYPO3\CMS\Core\Utility\GeneralUtility::md5int(microtime()); |
315 | 315 | |
316 | 316 | if (empty($this->incomingConfigurationSelection) |
317 | - || (count($this->incomingConfigurationSelection)==1 && empty($this->incomingConfigurationSelection[0])) |
|
317 | + || (count($this->incomingConfigurationSelection) == 1 && empty($this->incomingConfigurationSelection[0])) |
|
318 | 318 | ) { |
319 | - $code= ' |
|
319 | + $code = ' |
|
320 | 320 | <tr> |
321 | 321 | <td colspan="7"><b>'.$GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.noConfigSelected').'</b></td> |
322 | 322 | </tr>'; |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | tx_crawler_domain_events_dispatcher::getInstance()->post( |
334 | 334 | 'invokeQueueChange', |
335 | 335 | $this->findCrawler()->setID, |
336 | - [ 'reason' => $reason ] |
|
336 | + ['reason' => $reason] |
|
337 | 337 | ); |
338 | 338 | } |
339 | 339 | |
@@ -417,11 +417,11 @@ discard block |
||
417 | 417 | $this->pObj->MOD_SETTINGS['depth'], |
418 | 418 | 0 |
419 | 419 | ); |
420 | - $availableConfigurations = $this->crawlerObj->getConfigurationsForBranch($this->pObj->id, $this->pObj->MOD_SETTINGS['depth']?$this->pObj->MOD_SETTINGS['depth']:0); |
|
420 | + $availableConfigurations = $this->crawlerObj->getConfigurationsForBranch($this->pObj->id, $this->pObj->MOD_SETTINGS['depth'] ? $this->pObj->MOD_SETTINGS['depth'] : 0); |
|
421 | 421 | |
422 | 422 | // Configurations |
423 | 423 | $cell[] = $this->selectorBox( |
424 | - empty($availableConfigurations)?[]:array_combine($availableConfigurations, $availableConfigurations), |
|
424 | + empty($availableConfigurations) ? [] : array_combine($availableConfigurations, $availableConfigurations), |
|
425 | 425 | 'configurationSelection', |
426 | 426 | $this->incomingConfigurationSelection, |
427 | 427 | 1 |
@@ -561,12 +561,12 @@ discard block |
||
561 | 561 | // Print rudimentary details: |
562 | 562 | $output .= ' |
563 | 563 | <br /><br /> |
564 | - <input type="submit" value="' . $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.back') . '" name="_back" /> |
|
565 | - <input type="hidden" value="' . $this->pObj->id . '" name="id" /> |
|
566 | - <input type="hidden" value="' . $showSetId . '" name="setID" /> |
|
564 | + <input type="submit" value="' . $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.back').'" name="_back" /> |
|
565 | + <input type="hidden" value="' . $this->pObj->id.'" name="id" /> |
|
566 | + <input type="hidden" value="' . $showSetId.'" name="setID" /> |
|
567 | 567 | <br /> |
568 | - Current server time: ' . date('H:i:s', time()) . '<br />' . |
|
569 | - 'Status: ' . $resStatus . '<br />' . |
|
568 | + Current server time: ' . date('H:i:s', time()).'<br />'. |
|
569 | + 'Status: '.$resStatus.'<br />'. |
|
570 | 570 | \TYPO3\CMS\Core\Utility\DebugUtility::viewArray($q_entry); |
571 | 571 | } else { // Show list: |
572 | 572 | |
@@ -596,7 +596,7 @@ discard block |
||
596 | 596 | foreach ($tree->tree as $data) { |
597 | 597 | $code .= $this->drawLog_addRows( |
598 | 598 | $data['row'], |
599 | - $data['HTML'] . \TYPO3\CMS\Backend\Utility\BackendUtility::getRecordTitle('pages', $data['row'], true), |
|
599 | + $data['HTML'].\TYPO3\CMS\Backend\Utility\BackendUtility::getRecordTitle('pages', $data['row'], true), |
|
600 | 600 | intval($this->pObj->MOD_SETTINGS['itemsPerPage']) |
601 | 601 | ); |
602 | 602 | if (++$count == 1000) { |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | } |
606 | 606 | } else { |
607 | 607 | $code = ''; |
608 | - $code.= $this->drawLog_addRows( |
|
608 | + $code .= $this->drawLog_addRows( |
|
609 | 609 | $showSetId, |
610 | 610 | 'Set ID: '.$showSetId |
611 | 611 | ); |
@@ -647,10 +647,10 @@ discard block |
||
647 | 647 | </tr> |
648 | 648 | '; |
649 | 649 | |
650 | - $cc=0; |
|
650 | + $cc = 0; |
|
651 | 651 | foreach ($setList as $set) { |
652 | - $code.= ' |
|
653 | - <tr class="bgColor'.($cc%2 ? '-20':'-10').'"> |
|
652 | + $code .= ' |
|
653 | + <tr class="bgColor'.($cc % 2 ? '-20' : '-10').'"> |
|
654 | 654 | <td><a href="'.htmlspecialchars('index.php?setID='.$set['set_id']).'">'.$set['set_id'].'</a></td> |
655 | 655 | <td>'.$set['count_value'].'</td> |
656 | 656 | <td>'.\TYPO3\CMS\Backend\Utility\BackendUtility::dateTimeAge($set['scheduled']).'</td> |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | * @param int Items per Page setting |
720 | 720 | * @return string HTML <tr> content (one or more) |
721 | 721 | */ |
722 | - public function drawLog_addRows($pageRow_setId, $titleString, $itemsPerPage=10) |
|
722 | + public function drawLog_addRows($pageRow_setId, $titleString, $itemsPerPage = 10) |
|
723 | 723 | { |
724 | 724 | |
725 | 725 | // If Flush button is pressed, flush tables instead of selecting entries: |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | if (count($res)) { |
751 | 751 | // Traverse parameter combinations: |
752 | 752 | $c = 0; |
753 | - $content=''; |
|
753 | + $content = ''; |
|
754 | 754 | foreach ($res as $kk => $vv) { |
755 | 755 | |
756 | 756 | // Title column: |
@@ -774,7 +774,7 @@ discard block |
||
774 | 774 | if ($this->pObj->MOD_SETTINGS['log_resultLog']) { |
775 | 775 | $rowData['result_log'] = $resLog; |
776 | 776 | } else { |
777 | - $rowData['scheduled'] = ($vv['scheduled']> 0) ? \TYPO3\CMS\Backend\Utility\BackendUtility::datetime($vv['scheduled']) : ' '.$GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.immediate'); |
|
777 | + $rowData['scheduled'] = ($vv['scheduled'] > 0) ? \TYPO3\CMS\Backend\Utility\BackendUtility::datetime($vv['scheduled']) : ' '.$GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.immediate'); |
|
778 | 778 | $rowData['exec_time'] = $vv['exec_time'] ? \TYPO3\CMS\Backend\Utility\BackendUtility::datetime($vv['exec_time']) : '-'; |
779 | 779 | } |
780 | 780 | $rowData['result_status'] = \TYPO3\CMS\Core\Utility\GeneralUtility::fixed_lgd_cs($resStatus, 50); |
@@ -791,27 +791,27 @@ discard block |
||
791 | 791 | |
792 | 792 | $setId = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('setID')); |
793 | 793 | |
794 | - $refreshIcon = $GLOBALS['BACK_PATH'] . 'gfx/refresh_n.gif'; |
|
794 | + $refreshIcon = $GLOBALS['BACK_PATH'].'gfx/refresh_n.gif'; |
|
795 | 795 | if (version_compare(TYPO3_version, '7.0', '>=')) { |
796 | - $refreshIcon = $GLOBALS['BACK_PATH'] . 'sysext/t3skin/extjs/images/grid/refresh.gif'; |
|
796 | + $refreshIcon = $GLOBALS['BACK_PATH'].'sysext/t3skin/extjs/images/grid/refresh.gif'; |
|
797 | 797 | } |
798 | 798 | |
799 | 799 | // Put rows together: |
800 | - $content.= ' |
|
801 | - <tr class="bgColor'.($c%2 ? '-20':'-10').'"> |
|
800 | + $content .= ' |
|
801 | + <tr class="bgColor'.($c % 2 ? '-20' : '-10').'"> |
|
802 | 802 | '.$titleClm.' |
803 | - <td><a href="' . $this->getModuleUrl(['qid_details' => $vv['qid'], 'setID' => $setId]) . '">'.htmlspecialchars($vv['qid']).'</a></td> |
|
804 | - <td><a href="' . $this->getModuleUrl(['qid_read' => $vv['qid'], 'setID' => $setId]) . '"><img src="' . $refreshIcon . '" width="14" hspace="1" vspace="2" height="14" border="0" title="'.htmlspecialchars('Read').'" alt="" /></a></td>'; |
|
803 | + <td><a href="' . $this->getModuleUrl(['qid_details' => $vv['qid'], 'setID' => $setId]).'">'.htmlspecialchars($vv['qid']).'</a></td> |
|
804 | + <td><a href="' . $this->getModuleUrl(['qid_read' => $vv['qid'], 'setID' => $setId]).'"><img src="'.$refreshIcon.'" width="14" hspace="1" vspace="2" height="14" border="0" title="'.htmlspecialchars('Read').'" alt="" /></a></td>'; |
|
805 | 805 | foreach ($rowData as $fKey => $value) { |
806 | 806 | if (\TYPO3\CMS\Core\Utility\GeneralUtility::inList('url', $fKey)) { |
807 | - $content.= ' |
|
807 | + $content .= ' |
|
808 | 808 | <td>'.$value.'</td>'; |
809 | 809 | } else { |
810 | - $content.= ' |
|
810 | + $content .= ' |
|
811 | 811 | <td>'.nl2br(htmlspecialchars($value)).'</td>'; |
812 | 812 | } |
813 | 813 | } |
814 | - $content.= ' |
|
814 | + $content .= ' |
|
815 | 815 | </tr>'; |
816 | 816 | $c++; |
817 | 817 | |
@@ -967,11 +967,11 @@ discard block |
||
967 | 967 | $this->addErrorMessage($e->getMessage()); |
968 | 968 | } |
969 | 969 | |
970 | - $offset = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('offset')); |
|
971 | - $perpage = 20; |
|
970 | + $offset = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('offset')); |
|
971 | + $perpage = 20; |
|
972 | 972 | |
973 | - $processRepository = new tx_crawler_domain_process_repository(); |
|
974 | - $queueRepository = new tx_crawler_domain_queue_repository(); |
|
973 | + $processRepository = new tx_crawler_domain_process_repository(); |
|
974 | + $queueRepository = new tx_crawler_domain_queue_repository(); |
|
975 | 975 | |
976 | 976 | $mode = $this->pObj->MOD_SETTINGS['processListMode']; |
977 | 977 | if ($mode == 'detail') { |
@@ -980,7 +980,7 @@ discard block |
||
980 | 980 | $where = 'active = 1'; |
981 | 981 | } |
982 | 982 | |
983 | - $allProcesses = $processRepository->findAll('ttl', 'DESC', $perpage, $offset, $where); |
|
983 | + $allProcesses = $processRepository->findAll('ttl', 'DESC', $perpage, $offset, $where); |
|
984 | 984 | $allCount = $processRepository->countAll($where); |
985 | 985 | |
986 | 986 | $listView = new tx_crawler_view_process_list(); |
@@ -995,7 +995,7 @@ discard block |
||
995 | 995 | $listView->setMaxActiveProcessCount(tx_crawler_api::forceIntegerInRange($this->extensionSettings['processLimit'], 1, 99, 1)); |
996 | 996 | $listView->setMode($mode); |
997 | 997 | |
998 | - $paginationView = new tx_crawler_view_pagination(); |
|
998 | + $paginationView = new tx_crawler_view_pagination(); |
|
999 | 999 | $paginationView->setCurrentOffset($offset); |
1000 | 1000 | $paginationView->setPerPage($perpage); |
1001 | 1001 | $paginationView->setTotalItemCount($allCount); |
@@ -1033,7 +1033,7 @@ discard block |
||
1033 | 1033 | |
1034 | 1034 | $exitCode = 0; |
1035 | 1035 | $out = []; |
1036 | - exec(escapeshellcmd($this->extensionSettings['phpPath'] . ' -v'), $out, $exitCode); |
|
1036 | + exec(escapeshellcmd($this->extensionSettings['phpPath'].' -v'), $out, $exitCode); |
|
1037 | 1037 | if ($exitCode > 0) { |
1038 | 1038 | $this->addErrorMessage(sprintf($LANG->sL('LLL:EXT:crawler/modfunc1/locallang.xml:message.phpBinaryNotFound'), htmlspecialchars($this->extensionSettings['phpPath']))); |
1039 | 1039 | } |
@@ -1246,10 +1246,10 @@ discard block |
||
1246 | 1246 | $options = []; |
1247 | 1247 | foreach ($optArray as $key => $val) { |
1248 | 1248 | $options[] = ' |
1249 | - <option value="'.htmlspecialchars($key).'"'.((!$multiple && !strcmp($value, $key)) || ($multiple && in_array($key, (array)$value))?' selected="selected"':'').'>'.htmlspecialchars($val).'</option>'; |
|
1249 | + <option value="'.htmlspecialchars($key).'"'.((!$multiple && !strcmp($value, $key)) || ($multiple && in_array($key, (array) $value)) ? ' selected="selected"' : '').'>'.htmlspecialchars($val).'</option>'; |
|
1250 | 1250 | } |
1251 | 1251 | |
1252 | - $output = '<select name="'.htmlspecialchars($name.($multiple?'[]':'')).'"'.($multiple ? ' multiple="multiple" size="'.count($options).'"' : '').'>'.implode('', $options).'</select>'; |
|
1252 | + $output = '<select name="'.htmlspecialchars($name.($multiple ? '[]' : '')).'"'.($multiple ? ' multiple="multiple" size="'.count($options).'"' : '').'>'.implode('', $options).'</select>'; |
|
1253 | 1253 | |
1254 | 1254 | return $output; |
1255 | 1255 | } |