Feature #23309 ยป 15298-formmail-interface.patch
t3lib/class.t3lib_formmail.php (working copy) | ||
---|---|---|
t3lib_div::devLog( 't3lib_formmail: '. t3lib_div::arrayToLogString($this->dirtyHeaders, '', 200 ), 'Core', 3 );
|
||
}
|
||
}
|
||
|
||
// Hook for post-processing the form
|
||
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_formmail.php']['processForm'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_formmail.php']['processForm'] as $classRef) {
|
||
$hookObject = t3lib_div::getUserObj($classRef);
|
||
|
||
if (!($hookObject instanceof t3lib_formmail_processFormHook)) {
|
||
throw new UnexpectedValueException('$hookObject must implement interface t3lib_formmail_processFormHook', 1279962349);
|
||
}
|
||
|
||
$hookObject->processFormAction($V, $this);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
t3lib/core_autoload.php (working copy) | ||
---|---|---|
't3lib_tceformsinlinehook' => PATH_t3lib . 'interfaces/interface.t3lib_tceformsinlinehook.php',
|
||
't3lib_tcemain_checkmodifyaccesslisthook' => PATH_t3lib . 'interfaces/interface.t3lib_tcemain_checkmodifyaccesslisthook.php',
|
||
't3lib_tcemain_processuploadhook' => PATH_t3lib . 'interfaces/interface.t3lib_tcemain_processuploadhook.php',
|
||
't3lib_formmail_processformhook' => PATH_t3lib . 'interfaces/interface.t3lib_formmailhook.php',
|
||
't3lib_matchcondition_abstract' => PATH_t3lib . 'matchcondition/class.t3lib_matchcondition_abstract.php',
|
||
't3lib_matchcondition_backend' => PATH_t3lib . 'matchcondition/class.t3lib_matchcondition_backend.php',
|
||
't3lib_matchcondition_frontend' => PATH_t3lib . 'matchcondition/class.t3lib_matchcondition_frontend.php',
|
t3lib/interfaces/interface.t3lib_formmailhook.php (revision 0) | ||
---|---|---|
<?php
|
||
/***************************************************************
|
||
* Copyright notice
|
||
*
|
||
* (c) 2010 Georg Ringer <typo3@ringer.it>
|
||
* All rights reserved
|
||
*
|
||
* This script is part of the TYPO3 project. The TYPO3 project is
|
||
* free software; you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation; either version 2 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* The GNU General Public License can be found at
|
||
* http://www.gnu.org/copyleft/gpl.html.
|
||
* A copy is found in the textfile GPL.txt and important notices to the license
|
||
* from the author is found in LICENSE.txt distributed with these scripts.
|
||
*
|
||
*
|
||
* This script is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
*
|
||
* This copyright notice MUST APPEAR in all copies of the script!
|
||
***************************************************************/
|
||
|
||
|
||
/**
|
||
* Interface for classes which hook into t3lib_formmail
|
||
* after the upload of a file.
|
||
*
|
||
* @author Georg Ringer <typo3@ringer.it>
|
||
* @package TYPO3
|
||
* @subpackage t3lib
|
||
*/
|
||
|
||
interface t3lib_formmail_processFormHook {
|
||
|
||
/**
|
||
* Post-process a file upload.
|
||
*
|
||
* @param array Form parameters
|
||
* @param t3lib_formmail parent t3lib_formmail object
|
||
* @return void
|
||
*/
|
||
public function processFormAction($params, t3lib_formmail $parentObject);
|
||
|
||
}
|
||
|
||
?>
|