TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
InternalLinktype Class Reference
Inheritance diagram for InternalLinktype:
AbstractLinktype LinktypeInterface

Public Member Functions

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

Public Attributes

const DELETED = 'deleted'
 
const HIDDEN = 'hidden'
 
const MOVED = 'moved'
 
const NOTEXISTING = 'notExisting'
 

Protected Member Functions

 checkPage ($page)
 
 checkContent ($page, $anchor)
 
- Protected Member Functions inherited from AbstractLinktype
 setErrorParams ($value)
 
 getLanguageService ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $responsePage = true
 
 $responseContent = true
 
- Protected Attributes inherited from AbstractLinktype
 $errorParams = array()
 

Detailed Description

This class provides Check Internal Links plugin implementation

Definition at line 23 of file InternalLinktype.php.

Member Function Documentation

checkContent (   $page,
  $anchor 
)
protected

Checks a given content uid for validity

Parameters
string$pageUid of the page to which the link is pointing
string$anchorUid of the content element to check
Returns
bool TRUE on success or FALSE on error

Definition at line 140 of file InternalLinktype.php.

References $GLOBALS, InternalLinktype\$responseContent, elseif, and AbstractLinktype\getDatabaseConnection().

Referenced by InternalLinktype\checkLink().

checkLink (   $url,
  $softRefEntry,
  $reference 
)

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

Parameters
string$urlUrl to check as page-id or page-id#anchor (if anchor is present)
array$softRefEntry,:The soft reference entry which builds the context of that url
\TYPO3\CMS\Linkvalidator\LinkAnalyzer$referenceParent instance
Returns
bool TRUE on success or FALSE on error

Implements LinktypeInterface.

Definition at line 67 of file InternalLinktype.php.

References $url, InternalLinktype\checkContent(), InternalLinktype\checkPage(), and AbstractLinktype\setErrorParams().

checkPage (   $page)
protected

Checks a given page uid for validity

Parameters
string$pagePage uid to check
Returns
bool TRUE on success or FALSE on error

Definition at line 109 of file InternalLinktype.php.

References $GLOBALS, InternalLinktype\$responsePage, elseif, and AbstractLinktype\getDatabaseConnection().

Referenced by InternalLinktype\checkLink().

getBrokenUrl (   $row)

Constructs a valid Url for browser output

Parameters
array$rowBroken link record
Returns
string Parsed broken url

Implements LinktypeInterface.

Definition at line 298 of file InternalLinktype.php.

References BackendUtility\BEgetRootLine(), BackendUtility\firstDomainRecord(), and GeneralUtility\getIndpEnv().

getErrorMessage (   $errorParams)

Generates 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 190 of file InternalLinktype.php.

References AbstractLinktype\$errorParams, $lang, $response, elseif, and AbstractLinktype\getLanguageService().

Member Data Documentation

$responseContent = true
protected

Definition at line 57 of file InternalLinktype.php.

Referenced by InternalLinktype\checkContent().

$responsePage = true
protected

Definition at line 50 of file InternalLinktype.php.

Referenced by InternalLinktype\checkPage().

const DELETED = 'deleted'

Definition at line 28 of file InternalLinktype.php.

const HIDDEN = 'hidden'

Definition at line 33 of file InternalLinktype.php.

const MOVED = 'moved'

Definition at line 38 of file InternalLinktype.php.

const NOTEXISTING = 'notExisting'

Definition at line 43 of file InternalLinktype.php.