/**
* Array for hooks for own checks
*
- * @var array
+ * @var tx_linkvalidator_linktype_Abstract[]
*/
protected $hookObjectsArr = array();
*/
protected $extPageInTreeInfo = array();
+ /**
+ * Reference to the current element with table:uid, e.g. pages:85
+ *
+ * @var string
+ */
+ protected $recordReference = '';
+
+ /**
+ * Linked page together with a possible anchor, e.g. 85#c105
+ *
+ * @var string
+ */
+ protected $pageWithAnchor = '';
+
/**
* Fill hookObjectsArr with different link types and possible XClasses.
*/
*/
public function analyzeRecord(array &$results, $table, array $fields, array $record) {
- // Array to store urls from relevant field contents
- $urls = array();
-
- $referencedRecordType = '';
- // Last-parsed link element was a page
- $wasPage = TRUE;
-
- // Flag whether row contains a broken link in some field or not
- $rowContainsBrokenLink = FALSE;
-
// Put together content of all relevant fields
$haystack = '';
$htmlParser = t3lib_div::makeInstance('t3lib_parsehtml');
$softRefs = t3lib_BEfunc::explodeSoftRefParserList($conf['softref']);
// Traverse soft references
foreach ($softRefs as $spKey => $spParams) {
- // create / get object
+ /** @var t3lib_softrefproc $softRefObj Create or get the soft reference object */
$softRefObj = &t3lib_BEfunc::softRefParserObj($spKey);
// If there is an object returned...
$theList .= $this->extGetTreeList($row['uid'], $depth - 1, $begin - 1, $permsClause, $considerHidden);
}
}
+ $GLOBALS['TYPO3_DB']->sql_free_result($res);
}
- $GLOBALS['TYPO3_DB']->sql_free_result($res);
return $theList;
}