LinkValidatorReport
Module 'LinkValidator' as sub module of Web -> Info
This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.
Table of Contents
Properties
- $availableOptions : array<string|int, mixed>
- List of available link types to check defined in the TSconfig
- $brokenLinkRepository : BrokenLinkRepository
- $checkOpt : array<string|int, mixed>
- 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
- $hookObjectsArr : array<string|int, LinktypeInterface>
- $iconFactory : IconFactory
- $id : int
- $isAccessibleForCurrentUser : bool
- Information, if the module is accessible for the current user or not
- $lastEditedRecord : array<string|int, mixed>
- Information for last edited record
- $linkAnalyzer : LinkAnalyzer
- Link validation class
- $modTS : array<string|int, mixed>
- TSconfig of the current module
- $moduleTemplate : ModuleTemplate
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRecord : array<string|int, mixed>
- Information about the current page record
- $pageRenderer : PageRenderer
- $pagesRepository : PagesRepository
- $pObj : InfoModuleController
- $searchFields : array<string|int, mixed>
- $searchLevel : array<string|int, mixed>
- Depth for the recursive traversal of pages for the link validation For "Report" and "Check link" tab.
- $view : StandaloneView
Methods
- __construct() : mixed
- init() : mixed
- Init, called from parent object
- main() : string
- Main, called from parent object
- createFlashMessagesForNoBrokenLinks() : void
- Used when there are no broken links found.
- createView() : StandaloneView
- createViewForBrokenLinksTab() : StandaloneView
- Displays the table of broken links or a note if there were no broken links
- getBackendUser() : BackendUserAuthentication
- getCheckOptions() : array<string|int, mixed>
- Builds the checkboxes to show which types of links are available
- getLanguageService() : LanguageService
- getPageList() : array<string|int, int>
- Generates an array of page uids from current pageUid.
- getVariablesForTableHeader() : array<string|int, mixed>
- Sets variables for the Fluid Template of the table with the broken links
- initialize() : mixed
- Initializes the Module
- initializeLinkAnalyzer() : mixed
- Updates the table of stored broken links
- renderContent() : string
- Create tabs to split the report and the checkLink functions
- renderTableRow() : array<string|int, mixed>
- Displays one line of the broken links table
- updateBrokenLinks() : mixed
- Check for broken links
- validateSettings() : mixed
- Checks for incoming GET/POST parameters to update the module settings
Properties
$availableOptions
List of available link types to check defined in the TSconfig
protected
array<string|int, mixed>
$availableOptions
= []
$brokenLinkRepository
protected
BrokenLinkRepository
$brokenLinkRepository
$checkOpt
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
protected
array<string|int, mixed>
$checkOpt
= ['report' => [], 'check' => []]
$hookObjectsArr
protected
array<string|int, LinktypeInterface>
$hookObjectsArr
= []
$iconFactory
protected
IconFactory
$iconFactory
$id
protected
int
$id
Value of the GET/POST var 'id'
$isAccessibleForCurrentUser
Information, if the module is accessible for the current user or not
protected
bool
$isAccessibleForCurrentUser
= false
$lastEditedRecord
Information for last edited record
protected
array<string|int, mixed>
$lastEditedRecord
= ['uid' => 0, 'table' => '', 'field' => '', 'timestamp' => 0]
$linkAnalyzer
Link validation class
protected
LinkAnalyzer
$linkAnalyzer
$modTS
TSconfig of the current module
protected
array<string|int, mixed>
$modTS
= []
$moduleTemplate
protected
ModuleTemplate
$moduleTemplate
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageRecord
Information about the current page record
protected
array<string|int, mixed>
$pageRecord
= []
$pageRenderer
protected
PageRenderer
$pageRenderer
$pagesRepository
protected
PagesRepository
$pagesRepository
$pObj
protected
InfoModuleController
$pObj
Contains a reference to the parent calling object
$searchFields
protected
array<string|int, mixed>
$searchFields
= []
$searchLevel
Depth for the recursive traversal of pages for the link validation For "Report" and "Check link" tab.
protected
array<string|int, mixed>
$searchLevel
= ['report' => 0, 'check' => 0]
$view
protected
StandaloneView
$view
Methods
__construct()
public
__construct([PagesRepository|null $pagesRepository = null ][, BrokenLinkRepository|null $brokenLinkRepository = null ][, ModuleTemplateFactory|null $moduleTemplateFactory = null ][, IconFactory|null $iconFactory = null ][, PageRenderer|null $pageRecord = null ]) : mixed
Parameters
- $pagesRepository : PagesRepository|null = null
- $brokenLinkRepository : BrokenLinkRepository|null = null
- $moduleTemplateFactory : ModuleTemplateFactory|null = null
- $iconFactory : IconFactory|null = null
- $pageRecord : PageRenderer|null = null
init()
Init, called from parent object
public
init(InfoModuleController $pObj, ServerRequestInterface $request) : mixed
Parameters
- $pObj : InfoModuleController
-
A reference to the parent (calling) object
- $request : ServerRequestInterface
main()
Main, called from parent object
public
main(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface
Return values
string —Module content
createFlashMessagesForNoBrokenLinks()
Used when there are no broken links found.
protected
createFlashMessagesForNoBrokenLinks() : void
createView()
protected
createView(string $templateName) : StandaloneView
Parameters
- $templateName : string
Return values
StandaloneViewcreateViewForBrokenLinksTab()
Displays the table of broken links or a note if there were no broken links
protected
createViewForBrokenLinksTab(array<string|int, mixed> $amountOfBrokenLinks) : StandaloneView
Parameters
- $amountOfBrokenLinks : array<string|int, mixed>
Return values
StandaloneViewgetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetCheckOptions()
Builds the checkboxes to show which types of links are available
protected
getCheckOptions(array<string|int, mixed> $brokenLinkOverView, string $prefix) : array<string|int, mixed>
Parameters
- $brokenLinkOverView : array<string|int, mixed>
-
Array of broken links information
- $prefix : string
-
"report" or "check" for "Report" and "Check links" tab
Return values
array<string|int, mixed>getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetPageList()
Generates an array of page uids from current pageUid.
protected
getPageList() : array<string|int, int>
List does include pageUid itself.
Return values
array<string|int, int>getVariablesForTableHeader()
Sets variables for the Fluid Template of the table with the broken links
protected
getVariablesForTableHeader() : array<string|int, mixed>
Return values
array<string|int, mixed> —variables
initialize()
Initializes the Module
protected
initialize() : mixed
initializeLinkAnalyzer()
Updates the table of stored broken links
protected
initializeLinkAnalyzer() : mixed
renderContent()
Create tabs to split the report and the checkLink functions
protected
renderContent() : string
Return values
stringrenderTableRow()
Displays one line of the broken links table
protected
renderTableRow(string $table, array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
- $table : string
-
Name of database table
- $row : array<string|int, mixed>
-
Record row to be processed
Return values
array<string|int, mixed> —HTML of the rendered row
updateBrokenLinks()
Check for broken links
protected
updateBrokenLinks() : mixed
validateSettings()
Checks for incoming GET/POST parameters to update the module settings
protected
validateSettings(ServerRequestInterface $request) : mixed
Parameters
- $request : ServerRequestInterface