[TASK] Add unit test to cover stdWrap_innerWrap
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / ContextMenu / Renderer / AbstractContextMenuRenderer.php
1 <?php
2 namespace TYPO3\CMS\Backend\ContextMenu\Renderer;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * Abstract Context Menu Renderer
19 */
20 abstract class AbstractContextMenuRenderer
21 {
22 /**
23 * Renders an action recursive or just a single one
24 *
25 * @param \TYPO3\CMS\Backend\ContextMenu\ContextMenuAction $action
26 * @param bool $recursive
27 * @return mixed
28 */
29 abstract public function renderAction(\TYPO3\CMS\Backend\ContextMenu\ContextMenuAction $action, $recursive = false);
30
31 /**
32 * Renders an action collection recursive or just a single one
33 *
34 * @param \TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection $actionCollection
35 * @param bool $recursive
36 * @return mixed
37 */
38 abstract public function renderActionCollection(\TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection $actionCollection, $recursive = false);
39
40 /**
41 * Renders a context menu recursive or just a single one
42 *
43 * @param \TYPO3\CMS\Backend\ContextMenu\AbstractContextMenu $contextMenu
44 * @param bool $recursive
45 * @return mixed
46 */
47 abstract public function renderContextMenu(\TYPO3\CMS\Backend\ContextMenu\AbstractContextMenu $contextMenu, $recursive = false);
48 }