|
TYPO3 API
SVNRelease
|
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 2010 - 2011 Michael Miousse (michael.miousse@infoglobe.ca) 00006 * All rights reserved 00007 * 00008 * This script is part of the TYPO3 project. The TYPO3 project is 00009 * free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License can be found at 00015 * http://www.gnu.org/copyleft/gpl.html. 00016 * 00017 * This script is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * This copyright notice MUST APPEAR in all copies of the script! 00023 ***************************************************************/ 00024 00025 /** 00026 * This class provides interface implementation. 00027 * 00028 * @author Michael Miousse <michael.miousse@infoglobe.ca> 00029 * @package TYPO3 00030 * @subpackage linkvalidator 00031 */ 00032 interface tx_linkvalidator_linktype_Interface { 00033 00034 /** 00035 * Checks a given URL + /path/filename.ext for validity 00036 * 00037 * @param string $url: url to check 00038 * @param array $softRefEntry: the softref entry which builds the context of that url 00039 * @param object $reference: parent instance of tx_linkvalidator_Processor 00040 * @return string validation error message or succes code 00041 */ 00042 public function checkLink($url, $softRefEntry, $reference); 00043 00044 /** 00045 * Base type fetching method, based on the type that softRefParserObj returns. 00046 * 00047 * @param array $value: reference properties 00048 * @param string $type: current type 00049 * @param string $key: validator hook name 00050 * @return string fetched type 00051 */ 00052 public function fetchType($value, $type, $key); 00053 00054 /** 00055 * Get the value of the private property errorParams. 00056 * 00057 * @return array all parameters needed for the rendering of the error message 00058 */ 00059 public function getErrorParams(); 00060 00061 /** 00062 * Base url parsing 00063 * 00064 * @param array $row: broken link record 00065 * @return string parsed broken url 00066 */ 00067 public function getBrokenUrl($row); 00068 00069 } 00070 00071 ?>
1.8.0