Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Find all supported broken links for a specific record
- *
- * @param array $results Array of broken links
- * @param string $table Table name of the record
- * @param array $fields Array of fields to analyze
- * @param array $record Record to analyse
- * @return void
- */
- public function analyzeRecord(array &$results, $table, array $fields, array $record) {
- if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['analyzeRecord'])) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['analyzeRecord'] as $classRef) {
- $hookObject = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($classRef);
- if (!$hookObject instanceof \TYPO3\CMS\Linkvalidator\Interface\AnalyzeRecordInterface) {
- throw new \UnexpectedValueException('$hookObject must implement interface TYPO3\\CMS\\Linkvalidator\\Interface\\AnalyzeRecordInterface', 1380552237);
- }
- $hookObject->analyzeRecord($results, $table, $fields, $record);
- }
- }
- .. continue analyzing normal way ..
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement