![]() |
TYPO3
7.6
|
Public Member Functions | |
checkLink ($url, $softRefEntry, $reference) | |
fetchType ($value, $type, $key) | |
getErrorMessage ($errorParams) | |
![]() | |
fetchType ($value, $type, $key) | |
getErrorParams () | |
getBrokenUrl ($row) | |
Public Attributes | |
const | DELETED = 'deleted' |
const | DISABLED = 'disabled' |
Protected Member Functions | |
getTranslatedErrorMessage ($translationKey, $uid, $title=null) | |
getRecordRow ($tableName, $uid, $filter= '') | |
![]() | |
setErrorParams ($value) | |
getLanguageService () | |
getDatabaseConnection () | |
Additional Inherited Members | |
![]() | |
$errorParams = array() | |
This class provides Check Link Handler plugin implementation
Definition at line 23 of file LinkHandler.php.
checkLink | ( | $url, | |
$softRefEntry, | |||
$reference | |||
) |
Checks a given URL for validity
string | $url | Url to check |
array | $softRefEntry | The soft reference entry which builds the context of that url |
\TYPO3\CMS\Linkvalidator\LinkAnalyzer | $reference | Parent instance |
Implements LinktypeInterface.
Definition at line 43 of file LinkHandler.php.
References AbstractLinktype\$errorParams, $response, $url, LinkHandler\getRecordRow(), and AbstractLinktype\setErrorParams().
fetchType | ( | $value, | |
$type, | |||
$key | |||
) |
Type fetching method, based on the type that softRefParserObj returns
array | $value | Reference properties |
string | $type | Current type |
string | $key | Validator hook name |
Implements LinktypeInterface.
Definition at line 108 of file LinkHandler.php.
References StringUtility\beginsWith().
getErrorMessage | ( | $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 |
Implements LinktypeInterface.
Definition at line 122 of file LinkHandler.php.
References AbstractLinktype\$errorParams, $GLOBALS, $response, AbstractLinktype\getLanguageService(), and LinkHandler\getTranslatedErrorMessage().
|
protected |
Fetches the record with the given UID from the given table.
The filter option accepts two values:
"disabled" will filter out disabled and deleted records. "deleted" filters out deleted records but will return disabled records. If nothing is specified all records will be returned (including deleted).
string | $tableName | The name of the table from which the record should be fetched. |
int | $uid | The UID of the record that should be fetched. |
string | $filter | A filter setting, can be empty or "disabled" or "deleted". |
Definition at line 176 of file LinkHandler.php.
References BackendUtility\BEenableFields(), BackendUtility\deleteClause(), and AbstractLinktype\getDatabaseConnection().
Referenced by LinkHandler\checkLink().
|
protected |
Fetches the translation with the given key and replaces the ###uid### and ###title### markers
string | $translationKey | |
int | $uid | |
string | $title |
Definition at line 152 of file LinkHandler.php.
References AbstractLinktype\getLanguageService().
Referenced by LinkHandler\getErrorMessage().
const DELETED = 'deleted' |
Definition at line 28 of file LinkHandler.php.
const DISABLED = 'disabled' |
Definition at line 33 of file LinkHandler.php.