‪TYPO3CMS  ‪main
TYPO3\CMS\Linkvalidator\Linktype\FileLinktype Class Reference
Inheritance diagram for TYPO3\CMS\Linkvalidator\Linktype\FileLinktype:
TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype TYPO3\CMS\Linkvalidator\Linktype\LinktypeInterface

Public Member Functions

string fetchType (array $value, string $type, string $key)
bool checkLink (string $url, array $softRefEntry, LinkAnalyzer $reference)
string getErrorMessage (array $errorParams)
string getBrokenUrl (array $row)
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype
 getIdentifier ()
 setAdditionalConfig (array $config)
array getErrorParams ()

Protected Attributes

string $identifier = 'file'
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype
array $errorParams = []
string $identifier = ''

Additional Inherited Members

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

Detailed Description

This class provides Check File Links plugin implementation

Definition at line 29 of file FileLinktype.php.

Member Function Documentation

◆ checkLink()

bool TYPO3\CMS\Linkvalidator\Linktype\FileLinktype::checkLink ( string  $url,
array  $softRefEntry,
LinkAnalyzer  $reference 

Checks a given URL + /path/filename.ext for validity

string$url‪Url to check
array$softRefEntry‪The soft reference entry which builds the context of the url
\TYPO3\CMS\Linkvalidator\LinkAnalyzer$reference‪Parent instance
‪bool TRUE on success or FALSE on error

Implements TYPO3\CMS\Linkvalidator\Linktype\LinktypeInterface.

Definition at line 57 of file FileLinktype.php.

References TYPO3\CMS\Webhooks\Message\$url.

◆ fetchType()

string TYPO3\CMS\Linkvalidator\Linktype\FileLinktype::fetchType ( array  $value,
string  $type,
string  $key 

Type fetching method, based on the type that softRefParserObj returns

array$value‪Reference properties
string$type‪Current type
string$key‪Validator hook name
‪string fetched type

Reimplemented from TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype.

Definition at line 41 of file FileLinktype.php.

◆ getBrokenUrl()

string TYPO3\CMS\Linkvalidator\Linktype\FileLinktype::getBrokenUrl ( array  $row)

Construct a valid Url for browser output

array$row‪Broken link record
‪string Parsed broken url

Reimplemented from TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype.

Definition at line 86 of file FileLinktype.php.

References $GLOBALS.

◆ getErrorMessage()

string TYPO3\CMS\Linkvalidator\Linktype\FileLinktype::getErrorMessage ( array  $errorParams)

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

array$errorParams‪All parameters needed for the rendering of the error message
‪string Validation error message

Implements TYPO3\CMS\Linkvalidator\Linktype\LinktypeInterface.

Definition at line 75 of file FileLinktype.php.

References TYPO3\CMS\Linkvalidator\Linktype\AbstractLinktype\getLanguageService().

Member Data Documentation

◆ $identifier

string TYPO3\CMS\Linkvalidator\Linktype\FileLinktype::$identifier = 'file'

Definition at line 31 of file FileLinktype.php.