TYPO3 API  SVNRelease
interface.t3lib_tceformsinlinehook.php
Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003  * Copyright notice
00004  *
00005  * (c) 2008-2011 Oliver Hader <oh@inpublica.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  * A copy is found in the textfile GPL.txt and important notices to the license
00017  * from the author is found in LICENSE.txt distributed with these scripts.
00018  *
00019  *
00020  * This script is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  * GNU General Public License for more details.
00024  *
00025  * This copyright notice MUST APPEAR in all copies of the script!
00026  ***************************************************************/
00027 
00028 /**
00029  * Interface for classes which hook into t3lib_TCEforms_inline.
00030  *
00031  * $Id: interface.t3lib_tceformsinlinehook.php 10121 2011-01-18 20:15:30Z ohader $
00032  *
00033  * @author      Oliver Hader <oh@inpublica.de>
00034  * @package  TYPO3
00035  * @subpackage  t3lib
00036  */
00037 interface t3lib_tceformsInlineHook {
00038     /**
00039      * Initializes this hook object.
00040      *
00041      * @param   t3lib_TCEforms_inline       $parentObject: The calling t3lib_TCEforms_inline object.
00042      * @return  void
00043      */
00044     public function init(&$parentObject);
00045 
00046     /**
00047      * Pre-processing to define which control items are enabled or disabled.
00048      *
00049      * @param   string      $parentUid: The uid of the parent (embedding) record (uid or NEW...)
00050      * @param   string      $foreignTable: The table (foreign_table) we create control-icons for
00051      * @param   array       $childRecord: The current record of that foreign_table
00052      * @param   array       $childConfig: TCA configuration of the current field of the child record
00053      * @param   boolean     $isVirtual: Defines whether the current records is only virtually shown and not physically part of the parent record
00054      * @param   array       &$enabledControls: (reference) Associative array with the enabled control items
00055      * @return  void
00056      */
00057     public function renderForeignRecordHeaderControl_preProcess($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$enabledControls);
00058 
00059     /**
00060      * Post-processing to define which control items to show. Possibly own icons can be added here.
00061      *
00062      * @param   string      $parentUid: The uid of the parent (embedding) record (uid or NEW...)
00063      * @param   string      $foreignTable: The table (foreign_table) we create control-icons for
00064      * @param   array       $childRecord: The current record of that foreign_table
00065      * @param   array       $childConfig: TCA configuration of the current field of the child record
00066      * @param   boolean     $isVirtual: Defines whether the current records is only virtually shown and not physically part of the parent record
00067      * @param   array       &$controlItems: (reference) Associative array with the currently available control items
00068      * @return  void
00069      */
00070     public function renderForeignRecordHeaderControl_postProcess($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$controlItems);
00071 }
00072 
00073 ?>