![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
init (array $searchField, $pid, $tsConfig) | |
getLinkStatistics ($checkOptions=array(), $considerHidden=false) | |
getTSConfig () | |
getLinkCounts ($curPage) | |
extGetTreeList ($id, $depth, $begin=0, $permsClause, $considerHidden=false) | |
getRootLineIsHidden (array $pageInfo) | |
Protected Member Functions | |
emitBeforeAnalyzeRecordSignal ($results, $record, $table, $fields) | |
getSignalSlotDispatcher () | |
getObjectManager () | |
getDatabaseConnection () | |
getLanguageService () | |
Protected Attributes | |
$searchFields = array() | |
$pidList = '' | |
$linkCounts = array() | |
$brokenLinkCounts = array() | |
$recordsWithBrokenLinks = array() | |
$hookObjectsArr = array() | |
$extPageInTreeInfo = array() | |
$recordReference = '' | |
$pageWithAnchor = '' | |
$tsConfig = array() | |
This class provides Processing plugin implementation
Definition at line 25 of file LinkAnalyzer.php.
__construct | ( | ) |
Fill hookObjectsArr with different link types and possible XClasses.
Definition at line 100 of file LinkAnalyzer.php.
References $GLOBALS, LinkAnalyzer\getLanguageService(), and GeneralUtility\getUserObj().
|
protected |
Emits a signal before the record is analyzed
array | $results | Array of broken links |
array | $record | Record to analyse |
string | $table | Table name of the record |
array | $fields | Array of fields to analyze |
Definition at line 487 of file LinkAnalyzer.php.
References LinkAnalyzer\getSignalSlotDispatcher().
extGetTreeList | ( | $id, | |
$depth, | |||
$begin = 0 , |
|||
$permsClause, | |||
$considerHidden = false |
|||
) |
Calls TYPO3::extGetTreeList. Although this duplicates the function TYPO3::extGetTreeList this is necessary to create the object that is used recursively by the original function.
Generates a list of page uids from $id. List does not include $id itself. The only pages excluded from the list are deleted pages.
int | $id | Start page id |
int | $depth | Depth to traverse down the page tree. |
int | $begin | is an optional integer that determines at which |
string | $permsClause | Perms clause |
bool | $considerHidden | Whether to consider hidden pages or not |
Definition at line 423 of file LinkAnalyzer.php.
References LinkAnalyzer\getDatabaseConnection().
|
protected |
Definition at line 515 of file LinkAnalyzer.php.
References $GLOBALS.
Referenced by LinkAnalyzer\extGetTreeList(), LinkAnalyzer\getLinkCounts(), LinkAnalyzer\getLinkStatistics(), and LinkAnalyzer\getRootLineIsHidden().
|
protected |
Definition at line 523 of file LinkAnalyzer.php.
References $GLOBALS.
Referenced by LinkAnalyzer\__construct().
getLinkCounts | ( | $curPage | ) |
Fill a marker array with the number of links found in a list of pages
string | $curPage | Comma separated list of page uids |
Definition at line 385 of file LinkAnalyzer.php.
References LinkAnalyzer\getDatabaseConnection().
getLinkStatistics | ( | $checkOptions = array() , |
|
$considerHidden = false |
|||
) |
Find all supported broken links and store them in tx_linkvalidator_link
array | $checkOptions | List of hook object to activate |
bool | $considerHidden | Defines whether to look into hidden fields |
Definition at line 133 of file LinkAnalyzer.php.
References $GLOBALS, LinkAnalyzer\$pageWithAnchor, $response, $url, GeneralUtility\_GP(), BackendUtility\BEenableFields(), elseif, LinkAnalyzer\getDatabaseConnection(), and BackendUtility\getRecordTitle().
|
protected |
Definition at line 507 of file LinkAnalyzer.php.
References GeneralUtility\makeInstance().
Referenced by LinkAnalyzer\getSignalSlotDispatcher().
getRootLineIsHidden | ( | array | $pageInfo | ) |
Check if rootline contains a hidden page
array | $pageInfo | Array with uid, title, hidden, extendToSubpages from pages table |
Definition at line 456 of file LinkAnalyzer.php.
References LinkAnalyzer\getDatabaseConnection().
|
protected |
Definition at line 499 of file LinkAnalyzer.php.
References LinkAnalyzer\getObjectManager().
Referenced by LinkAnalyzer\emitBeforeAnalyzeRecordSignal().
getTSConfig | ( | ) |
Returns the TSConfig that was passed to the init() method.
This can be used by link checkers that get a reference of this object passed to the checkLink() method.
Definition at line 278 of file LinkAnalyzer.php.
References LinkAnalyzer\$tsConfig.
init | ( | array | $searchField, |
$pid, | |||
$tsConfig | |||
) |
Store all the needed configuration values in class variables
array | $searchField | List of fields in which to search for links |
string | $pid | List of comma separated page uids in which to search for links |
array | $tsConfig | The currently active TSConfig. |
Definition at line 119 of file LinkAnalyzer.php.
References LinkAnalyzer\$tsConfig.
|
protected |
Definition at line 53 of file LinkAnalyzer.php.
|
protected |
Definition at line 74 of file LinkAnalyzer.php.
|
protected |
Definition at line 67 of file LinkAnalyzer.php.
|
protected |
Definition at line 46 of file LinkAnalyzer.php.
|
protected |
Definition at line 88 of file LinkAnalyzer.php.
Referenced by LinkAnalyzer\getLinkStatistics().
|
protected |
Definition at line 39 of file LinkAnalyzer.php.
|
protected |
Definition at line 81 of file LinkAnalyzer.php.
|
protected |
Definition at line 60 of file LinkAnalyzer.php.
|
protected |
Definition at line 32 of file LinkAnalyzer.php.
|
protected |
Definition at line 95 of file LinkAnalyzer.php.
Referenced by LinkAnalyzer\getTSConfig(), and LinkAnalyzer\init().