|
TYPO3 API
SVNRelease
|
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 2010-2011 Oliver Klee <typo3-coding@oliverklee.de> 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 * Class t3lib_formProtection_Testing. 00027 * 00028 * This is a testing subclass of the abstract t3lib_formprotection_Abstract 00029 * class. 00030 * 00031 * $Id$ 00032 * 00033 * @package TYPO3 00034 * @subpackage t3lib 00035 * 00036 * @author Oliver Klee <typo3-coding@oliverklee.de> 00037 */ 00038 class t3lib_formProtection_Testing extends t3lib_formprotection_Abstract { 00039 /** 00040 * the maximum number of tokens that can exist at the same time 00041 * 00042 * @var integer 00043 */ 00044 protected $maximumNumberOfTokens = 100; 00045 00046 /** 00047 * Sets the maximum number of tokens that can exist at the same time. 00048 * 00049 * @param integer $number maximum number of tokens, must be > 0 00050 * 00051 * @return void 00052 */ 00053 public function setMaximumNumberOfTokens($number) { 00054 $this->maximumNumberOfTokens = $number; 00055 } 00056 00057 /** 00058 * Creates or displayes an error message telling the user that the submitted 00059 * form token is invalid. 00060 * 00061 * @return void 00062 */ 00063 protected function createValidationErrorMessage() {} 00064 00065 /** 00066 * Retrieves all saved tokens. 00067 * 00068 * @return array the saved tokens as a two-dimensional array, will be empty 00069 * if no tokens have been saved 00070 */ 00071 protected function retrieveTokens() {} 00072 00073 /** 00074 * Saves the tokens so that they can be used by a later incarnation of this 00075 * class. 00076 * 00077 * @return void 00078 */ 00079 public function persistTokens() {} 00080 00081 /** 00082 * Drops the token with the ID $tokenId and persists all tokens. 00083 * 00084 * If there is no token with that ID, this function is a no-op. 00085 * 00086 * @param string $tokenId 00087 * the 32-character ID of an existing token, must not be empty 00088 * 00089 * @return void 00090 */ 00091 public function dropToken($tokenId) { 00092 parent::dropToken($tokenId); 00093 } 00094 } 00095 00096 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/formprotection/class.t3lib_formprotection_testing.php'])) { 00097 include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/formprotection/class.t3lib_formprotection_testing.php']); 00098 } 00099 ?>
1.8.0