Project

General

Profile

Feature #10598 ยป v1.patch

Tolleiv Nietsch, 2010-11-02 16:21

View differences:

lib/class.tx_linkvalidator_checkbase.php (working copy)
*/
abstract class tx_linkvalidator_checkbase {
abstract function checkLink($url, $reference);
abstract function checkLink($url, $softRefEntry, $reference);
/**
* Base type fetching method, based on the type that softRefParserObj returns.
lib/class.tx_linkvalidator_checkexternallinks.php (working copy)
* Checks a given URL + /path/filename.ext for validity
*
* @param string $url: url to check
* @param array $softRefEntry: the softref entry which builds the context of that url
* @param object $reference: parent instance of tx_linkvalidator_processing
* @return string validation error message or succes code
*/
function checkLink($url, $reference) {
function checkLink($url, $softRefEntry, $reference) {
if($this->url_reports[$url]) {
return $this->url_reports[$url];
}
lib/class.tx_linkvalidator_checkfilelinks.php (working copy)
* Checks a given URL + /path/filename.ext for validity
*
* @param string $url: url to check
* @param array $softRefEntry: the softref entry which builds the context of that url
* @param object $reference: parent instance of tx_linkvalidator_processing
* @return string validation error message or succes code
*/
function checkLink($url, $reference) {
function checkLink($url, $softRefEntry, $reference) {
if (!@file_exists(PATH_site.rawurldecode($url))) {
return $GLOBALS['LANG']->getLL('list.report.filenotexisting');
}
lib/class.tx_linkvalidator_checkinternallinks.php (working copy)
* Checks a given URL + /path/filename.ext for validity
*
* @param string $url: url to check
* @param array $softRefEntry: the softref entry which builds the context of that url
* @param object $reference: parent instance of tx_linkvalidator_processing
* @return string validation error message or succes code
*/
function checkLink($url, $reference) {
function checkLink($url, $softRefEntry, $reference) {
$rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
'uid, deleted, title',
'pages',
lib/class.tx_linkvalidator_checklinkhandlerlinks.php (working copy)
* Checks a given URL + /path/filename.ext for validity
*
* @param string $url: url to check
* @param array $softRefEntry: the softref entry which builds the context of that url
* @param object $reference: parent instance of tx_linkvalidator_processing
* @return string validation error message or succes code
*/
function checkLink($url, $reference) {
function checkLink($url, $softRefEntry, $reference) {
$parts = explode(":", $url);
if(count($parts) == 3) {
$tablename = htmlspecialchars($parts[1]);
lib/class.tx_linkvalidator_processing.php (working copy)
$record['field'] = $entryValue['field'];
$url = $entryValue['substr']['tokenValue'];
$this->linkCounts[$table]++;
$checkURL = $hookObj->checkLink($url, $this);
$checkURL = $hookObj->checkLink($url, $entryValue, $this);
// broken link found!
if ($checkURL != 1) {
$this->brokenLinkCounts[$table]++;
    (1-1/1)