From: Oliver Hader Date: Tue, 5 Feb 2008 17:31:40 +0000 (+0000) Subject: Followup to #6472: Added uncommitted interface in t3lib/interfaces X-Git-Tag: TYPO3_4-2-0beta1~18 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/b9bbf37d479c8a6d3fbc9f246ce5b4953e4f1fe4 Followup to #6472: Added uncommitted interface in t3lib/interfaces git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3076 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/t3lib/interfaces/interface.t3lib_tceformsInlineHook.php b/t3lib/interfaces/interface.t3lib_tceformsInlineHook.php new file mode 100644 index 000000000000..7c3caf80ba9a --- /dev/null +++ b/t3lib/interfaces/interface.t3lib_tceformsInlineHook.php @@ -0,0 +1,72 @@ + + * 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_TCEforms_inline. + * + * $Id$ + * + * @author Oliver Hader + * @package TYPO3 + * @subpackage t3lib + */ +interface t3lib_tceformsInlineHook { + /** + * Initializes this hook object. + * + * @param t3lib_TCEforms_inline $parentObject: The calling t3lib_TCEforms_inline object. + * @return void + */ + public function init(&$parentObject); + + /** + * Pre-processing to define which control items are enabled or disabled. + * + * @param string $parentUid: The uid of the parent (embedding) record (uid or NEW...) + * @param string $foreignTable: The table (foreign_table) we create control-icons for + * @param array $childRecord: The current record of that foreign_table + * @param array $childConfig: TCA configuration of the current field of the child record + * @param boolean $isVirtual: Defines whether the current records is only virtually shown and not physically part of the parent record + * @param array &$enabledControls: (reference) Associative array with the enabled control items + * @return void + */ + public function renderForeignRecordHeaderControl_preProcess($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$enabledControls); + + /** + * Post-processing to define which control items to show. Possibly own icons can be added here. + * + * @param string $parentUid: The uid of the parent (embedding) record (uid or NEW...) + * @param string $foreignTable: The table (foreign_table) we create control-icons for + * @param array $childRecord: The current record of that foreign_table + * @param array $childConfig: TCA configuration of the current field of the child record + * @param boolean $isVirtual: Defines whether the current records is only virtually shown and not physically part of the parent record + * @param array &$controlItems: (reference) Associative array with the currently available control items + * @return void + */ + public function renderForeignRecordHeaderControl_postProcess($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$controlItems); +} +?> \ No newline at end of file