TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype Class Reference
Inheritance diagram for TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype:
TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype TYPO3\CMS\Linkvalidator\Linktype\LinktypeInterface tx_linkvalidator_linktype_External

Public Member Functions

 getErrorMessage ($errorParams)
 
 fetchType ($value, $type, $key)
 
- Public Member Functions inherited from TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype
 fetchType ($value, $type, $key)
 
 getErrorParams ()
 
 getBrokenUrl ($row)
 
- Public Member Functions inherited from TYPO3\CMS\Linkvalidator\Linktype\LinktypeInterface
 checkLink ($url, $softRefEntry, $reference)
 

Protected Attributes

 $urlReports = array()
 
 $urlErrorParams = array()
 
 $additionalHeaders = array()
 
- Protected Attributes inherited from TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype
 $errorParams = array()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype
 setErrorParams ($value)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! This class provides Check External Links plugin implementation

Author
Dimitri König dk@ca.nosp@m.bag..nosp@m.ch
Michael Miousse micha.nosp@m.el.m.nosp@m.iouss.nosp@m.e@in.nosp@m.foglo.nosp@m.be.c.nosp@m.a
Philipp Gampe typo3.nosp@m..dev.nosp@m.@phil.nosp@m.ippg.nosp@m.ampe..nosp@m.info

Definition at line 24 of file ExternalLinktype.php.

Member Function Documentation

◆ fetchType()

TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype::fetchType (   $value,
  $type,
  $key 
)

Get the external type from the softRefParserObj result

Parameters
array$valueReference properties
string$typeCurrent type
string$keyValidator hook name
Returns
string Fetched type

Implements TYPO3\CMS\Linkvalidator\Linktype\LinktypeInterface.

Definition at line 160 of file ExternalLinktype.php.

◆ getErrorMessage()

TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype::getErrorMessage (   $errorParams)

Generate the localized error message from the error params saved from the parsing

Parameters
array$errorParamsAll parameters needed for the rendering of the error message
Returns
string Validation error message

Implements TYPO3\CMS\Linkvalidator\Linktype\LinktypeInterface.

Definition at line 125 of file ExternalLinktype.php.

References TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype\$errorParams, and $GLOBALS.

Member Data Documentation

◆ $additionalHeaders

array TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype::$additionalHeaders = array()
protected

List of headers to be used for matching an URL for the current processing

Definition at line 45 of file ExternalLinktype.php.

◆ $urlErrorParams

array TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype::$urlErrorParams = array()
protected

Cached list of all error parameters of the URLs, which were already checked for the current processing

Definition at line 38 of file ExternalLinktype.php.

◆ $urlReports

array TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype::$urlReports = array()
protected

Cached list of the URLs, which were already checked for the current processing

Definition at line 31 of file ExternalLinktype.php.