|
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 Check Base plugin implementation. 00027 * 00028 * @author Michael Miousse <michael.miousse@infoglobe.ca> 00029 * @package TYPO3 00030 * @subpackage linkvalidator 00031 */ 00032 abstract class tx_linkvalidator_linktype_Abstract implements tx_linkvalidator_linktype_Interface { 00033 00034 /** 00035 * Contains parameters needed for the rendering of the error message 00036 * 00037 * @var array 00038 */ 00039 protected $errorParams = array(); 00040 00041 /** 00042 * Base type fetching method, based on the type that softRefParserObj returns. 00043 * 00044 * @param array $value: reference properties 00045 * @param string $type: current type 00046 * @param string $key: validator hook name 00047 * @return string fetched type 00048 */ 00049 public function fetchType($value, $type, $key) { 00050 if ($value['type'] == $key) { 00051 $type = $value['type']; 00052 } 00053 return $type; 00054 } 00055 00056 /** 00057 * Set the value of the private property errorParams. 00058 * 00059 * @param array all parameters needed for the rendering of the error message 00060 * @return void 00061 */ 00062 protected function setErrorParams(array $value) { 00063 $this->errorParams = $value; 00064 } 00065 00066 /** 00067 * Get the value of the private property errorParams. 00068 * 00069 * @return array all parameters needed for the rendering of the error message 00070 */ 00071 public function getErrorParams() { 00072 return $this->errorParams; 00073 } 00074 00075 /** 00076 * Base url parsing 00077 * 00078 * @param array $row: broken link record 00079 * @return string parsed broken url 00080 */ 00081 public function getBrokenUrl($row) { 00082 return $row['url']; 00083 } 00084 } 00085 00086 ?>
1.8.0