2 /***************************************************************
5 * (c) 2008 Oliver Hader <oh@inpublica.de>
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
29 * Interface for classes which hook into t3lib_TCEforms_inline.
33 * @author Oliver Hader <oh@inpublica.de>
37 interface t3lib_tceformsInlineHook
{
39 * Initializes this hook object.
41 * @param t3lib_TCEforms_inline $parentObject: The calling t3lib_TCEforms_inline object.
44 public function init(&$parentObject);
47 * Pre-processing to define which control items are enabled or disabled.
49 * @param string $parentUid: The uid of the parent (embedding) record (uid or NEW...)
50 * @param string $foreignTable: The table (foreign_table) we create control-icons for
51 * @param array $childRecord: The current record of that foreign_table
52 * @param array $childConfig: TCA configuration of the current field of the child record
53 * @param boolean $isVirtual: Defines whether the current records is only virtually shown and not physically part of the parent record
54 * @param array &$enabledControls: (reference) Associative array with the enabled control items
57 public function renderForeignRecordHeaderControl_preProcess($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$enabledControls);
60 * Post-processing to define which control items to show. Possibly own icons can be added here.
62 * @param string $parentUid: The uid of the parent (embedding) record (uid or NEW...)
63 * @param string $foreignTable: The table (foreign_table) we create control-icons for
64 * @param array $childRecord: The current record of that foreign_table
65 * @param array $childConfig: TCA configuration of the current field of the child record
66 * @param boolean $isVirtual: Defines whether the current records is only virtually shown and not physically part of the parent record
67 * @param array &$controlItems: (reference) Associative array with the currently available control items
70 public function renderForeignRecordHeaderControl_postProcess($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$controlItems);