[BUGFIX] PackageManager fails on empty array entries in conflicts
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / ElementBrowser / ElementBrowserHookInterface.php
1 <?php
2 namespace TYPO3\CMS\Core\ElementBrowser;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 2007-2013 Ingo Renner <ingo@typo3.org>
8 * All rights reserved
9 *
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
18 * A copy is found in the textfile GPL.txt and important notices to the license
19 * from the author is found in LICENSE.txt distributed with these scripts.
20 *
21 *
22 * This script is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * This copyright notice MUST APPEAR in all copies of the script!
28 ***************************************************************/
29 /**
30 * Interface for classes which hook into browse_links
31 *
32 * @author Ingo Renner <ingo@typo3.org>
33 */
34 interface ElementBrowserHookInterface {
35 /**
36 * Initializes the hook object
37 *
38 * @param \TYPO3\CMS\Recordlist\Browser\ElementBrowser Parent browse_links object
39 * @param array Additional parameters
40 * @return void
41 */
42 public function init($parentObject, $additionalParameters);
43
44 /**
45 * Adds new items to the currently allowed ones and returns them
46 *
47 * @param array Currently allowed items
48 * @return array Currently allowed items plus added items
49 */
50 public function addAllowedItems($currentlyAllowedItems);
51
52 /**
53 * Modifies the menu definition and returns it
54 *
55 * @param array Menu definition
56 * @return array Modified menu definition
57 */
58 public function modifyMenuDefinition($menuDefinition);
59
60 /**
61 * Returns a new tab for the browse links wizard
62 *
63 * @param string Current link selector action
64 * @return string A tab for the selected link action
65 */
66 public function getTab($linkSelectorAction);
67
68 /**
69 * Checks the current URL and determines what to do
70 *
71 * @param string $href
72 * @param string $siteUrl
73 * @param array $info
74 * @return array
75 */
76 public function parseCurrentUrl($href, $siteUrl, $info);
77
78 }