‪TYPO3CMS  ‪main
TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController Class Reference

Public Member Functions

 __construct (protected readonly Context $context, protected readonly UriBuilder $uriBuilder, protected readonly IconFactory $iconFactory, protected readonly PagesRepository $pagesRepository, protected readonly BrokenLinkRepository $brokenLinkRepository, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly LinkAnalyzer $linkAnalyzer, protected readonly LinktypeRegistry $linktypeRegistry,)
 
 __invoke (ServerRequestInterface $request)
 

Protected Member Functions

 validateSettings (ServerRequestInterface $request)
 
 initializeLinkAnalyzer ()
 
 updateBrokenLinks ()
 
 getBrokenLinks ()
 
int[] getPageList ()
 
 createFlashMessagesForNoBrokenLinks ()
 
 generateTableRow (array $row)
 
 getCheckOptions (string $prefix)
 
 addDocHeaderShortCutButton (ModuleTemplate $view, string $action)
 
 addDocHeaderDropDown (ModuleTemplate $view, string $currentAction)
 
 getModuleUri (string $action=null, array $additionalPramaters=[])
 
 getModuleTitle ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

array $pageRecord = []
 
array $modTS = []
 
array $searchLevel = ['report' => 0, 'check' => 0]
 
array $checkOpt = ['report' => [], 'check' => []]
 
array $lastEditedRecord
 
int $id
 
array $searchFields = []
 
ServerRequestInterface $request
 

Detailed Description

Controller for the LinkValidator report module

This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.

Definition at line 48 of file LinkValidatorController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::__construct ( protected readonly Context  $context,
protected readonly UriBuilder  $uriBuilder,
protected readonly IconFactory  $iconFactory,
protected readonly PagesRepository  $pagesRepository,
protected readonly BrokenLinkRepository  $brokenLinkRepository,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory,
protected readonly LinkAnalyzer  $linkAnalyzer,
protected readonly LinktypeRegistry  $linktypeRegistry 
)

Definition at line 88 of file LinkValidatorController.php.

Member Function Documentation

◆ __invoke()

◆ addDocHeaderDropDown()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::addDocHeaderDropDown ( ModuleTemplate  $view,
string  $currentAction 
)
protected

◆ addDocHeaderShortCutButton()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::addDocHeaderShortCutButton ( ModuleTemplate  $view,
string  $action 
)
protected

◆ createFlashMessagesForNoBrokenLinks()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::createFlashMessagesForNoBrokenLinks ( )
protected

◆ generateTableRow()

◆ getBackendUser()

◆ getBrokenLinks()

◆ getCheckOptions()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::getCheckOptions ( string  $prefix)
protected

Builds the checkboxes to show which types of links are available

Parameters
string$prefix‪"report" or "check" for "Report" and "Check links" tab

Definition at line 426 of file LinkValidatorController.php.

References TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController\getLanguageService(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController\__invoke().

◆ getLanguageService()

◆ getModuleTitle()

◆ getModuleUri()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::getModuleUri ( string  $action = null,
array  $additionalPramaters = [] 
)
protected

◆ getPageList()

int [] TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::getPageList ( )
protected

◆ initializeLinkAnalyzer()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::initializeLinkAnalyzer ( )
protected

◆ updateBrokenLinks()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::updateBrokenLinks ( )
protected

Check for broken links

Definition at line 281 of file LinkValidatorController.php.

Referenced by TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController\__invoke().

◆ validateSettings()

TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::validateSettings ( ServerRequestInterface  $request)
protected

Member Data Documentation

◆ $checkOpt

array TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::$checkOpt = ['report' => [], 'check' => []]
protected

List of link types currently chosen in the statistics table Used to show broken links of these types only For "Report" and "Check link" tab

Definition at line 71 of file LinkValidatorController.php.

◆ $id

int TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::$id
protected

◆ $lastEditedRecord

array TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::$lastEditedRecord
protected
Initial value:
= [
'uid' => 0,
'table' => '',
'field' => '',
'timestamp' => 0,
]

Information for last edited record

Definition at line 76 of file LinkValidatorController.php.

◆ $modTS

array TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::$modTS = []
protected

TSconfig of the current module

Definition at line 58 of file LinkValidatorController.php.

◆ $pageRecord

array TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::$pageRecord = []
protected

Information about the current page record

Definition at line 53 of file LinkValidatorController.php.

◆ $request

ServerRequestInterface TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::$request
protected

◆ $searchFields

array TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::$searchFields = []
protected

Definition at line 84 of file LinkValidatorController.php.

◆ $searchLevel

array TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController::$searchLevel = ['report' => 0, 'check' => 0]
protected

Depth for the recursive traversal of pages for the link validation For "Report" and "Check link" tab.

Definition at line 64 of file LinkValidatorController.php.