Fixed bug #16443: FAL Hooks (Thanks to Mathias Schreiber)
[Packages/TYPO3.CMS.git] / t3lib / interfaces / interface.t3lib_tceforms_dbfileiconshook.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2010 Andy Grunwald <andreas.grunwald@wmdb.de>
6 * All rights reserved
7 *
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.
13 *
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.
18 *
19 *
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.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27
28
29 /**
30 * Interface for classes which hook into t3lib_TCEforms and do additional dbFileIcons processing
31 *
32 * @author Andy Grunwald <andreas.grunwald@wmdb.de>
33 * @package TYPO3
34 * @subpackage t3lib
35 */
36 interface t3lib_TCEforms_dbFileIconsHook {
37
38 /**
39 * Modifies the parameters for selector box form-field for the db/file/select elements (multiple)
40 *
41 * @param array $params An array of additional parameters, eg: "size", "info", "headers" (array with "selector" and "items"), "noBrowser", "thumbnails"
42 * @param string $selector Alternative selector box.
43 * @param string $thumbnails Thumbnail view of images. Only filled if there are images only. This images will be shown under the selectorbox.
44 * @param array $icons Defined icons next to the selector box.
45 * @param string $rightbox Thumbnail view of images. Only filled if there are other types as images. This images will be shown right next to the selectorbox.
46 * @param string $fName Form element name
47 * @param array $uidList The array of item-uids. Have a look at t3lib_TCEforms::dbFileIcons parameter "$itemArray"
48 * @param array $additionalParams Array with additional parameters which are be available at method call. Includes $mode, $allowed, $itemArray, $onFocus, $table, $field, $uid. For more information have a look at PHPDoc-Comment of t3lib_TCEforms::dbFileIcons
49 * @param t3lib_TCEforms $parentObject parent t3lib_TCEforms object
50 * @return void
51 */
52 public function dbFileIcons_postProcess(array &$params, &$selector, &$thumbnails, array &$icons, &$rightbox, &$fName, array &$uidList, array $additionalParams, t3lib_TCEforms $parentObject);
53 }
54
55 ?>