TYPO3  7.6
Public Member Functions | List of all members
LinktypeInterface Interface Reference
Inheritance diagram for LinktypeInterface:
AbstractLinktype ExternalLinktype FileLinktype InternalLinktype LinkHandler

Public Member Functions

 checkLink ($url, $softRefEntry, $reference)
 
 fetchType ($value, $type, $key)
 
 getErrorParams ()
 
 getBrokenUrl ($row)
 
 getErrorMessage ($errorParams)
 

Detailed Description

This class provides interface implementation.

Definition at line 20 of file LinktypeInterface.php.

Member Function Documentation

checkLink (   $url,
  $softRefEntry,
  $reference 
)

Checks a given link for validity

Parameters
string$urlUrl to check
array$softRefEntryThe soft reference entry which builds the context of that url
\TYPO3\CMS\Linkvalidator\LinkAnalyzer$referenceParent instance
Returns
string Validation error message or success code

Implemented in InternalLinktype, FileLinktype, and LinkHandler.

fetchType (   $value,
  $type,
  $key 
)

Base type fetching method, based on the type that softRefParserObj returns.

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

Implemented in ExternalLinktype, LinkHandler, AbstractLinktype, and FileLinktype.

getBrokenUrl (   $row)

Construct a valid Url for browser output

Parameters
array$rowBroken link record
Returns
string Parsed broken url

Implemented in InternalLinktype, FileLinktype, and AbstractLinktype.

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

Implemented in InternalLinktype, ExternalLinktype, LinkHandler, and FileLinktype.

getErrorParams ( )

Get the value of the private property errorParams.

Returns
array All parameters needed for the rendering of the error message

Implemented in AbstractLinktype.