TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FileLinktype Class Reference
Inheritance diagram for FileLinktype:
AbstractLinktype LinktypeInterface

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from AbstractLinktype
 setErrorParams ($value)
 
 getLanguageService ()
 
- Protected Attributes inherited from AbstractLinktype
 $errorParams = []
 

Detailed Description

This class provides Check File Links plugin implementation

Definition at line 24 of file FileLinktype.php.

Member Function Documentation

checkLink (   $url,
  $softRefEntry,
  $reference 
)

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

Parameters
string$urlUrl to check
array$softRefEntryThe soft reference entry which builds the context of the url
\TYPO3\CMS\Linkvalidator\LinkAnalyzer$referenceParent instance
Returns
bool TRUE on success or FALSE on error

Implements LinktypeInterface.

Definition at line 49 of file FileLinktype.php.

References GeneralUtility\makeInstance().

fetchType (   $value,
  $type,
  $key 
)

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

Implements LinktypeInterface.

Definition at line 34 of file FileLinktype.php.

getBrokenUrl (   $row)

Construct a valid Url for browser output

Parameters
array$rowBroken link record
Returns
string Parsed broken url

Implements LinktypeInterface.

Definition at line 77 of file FileLinktype.php.

References GeneralUtility\getIndpEnv().

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 LinktypeInterface.

Definition at line 66 of file FileLinktype.php.

References AbstractLinktype\getLanguageService().