1<?php 2 3/* 4 * This file is part of the TYPO3 CMS project. 5 * 6 * It is free software; you can redistribute it and/or modify it under 7 * the terms of the GNU General Public License, either version 2 8 * of the License, or any later version. 9 * 10 * For the full copyright and license information, please read the 11 * LICENSE.txt file that was distributed with this source code. 12 * 13 * The TYPO3 project - inspiring people to share! 14 */ 15 16namespace TYPO3\CMS\Backend\Tree\Renderer; 17 18use TYPO3\CMS\Backend\Tree\AbstractTree; 19use TYPO3\CMS\Backend\Tree\TreeNodeCollection; 20use TYPO3\CMS\Backend\Tree\TreeRepresentationNode; 21 22/** 23 * Abstract Renderer 24 */ 25abstract class AbstractTreeRenderer 26{ 27 /** 28 * Renders a node recursive or just a single instance 29 * 30 * @param \TYPO3\CMS\Backend\Tree\TreeRepresentationNode $node 31 * @param bool $recursive 32 * @return mixed 33 */ 34 abstract public function renderNode(TreeRepresentationNode $node, $recursive = true); 35 36 /** 37 * Renders a node collection recursive or just a single instance 38 * 39 * @param \TYPO3\CMS\Backend\Tree\TreeNodeCollection $collection 40 * @param bool $recursive 41 * @return mixed 42 */ 43 abstract public function renderNodeCollection(TreeNodeCollection $collection, $recursive = true); 44 45 /** 46 * Renders a tree recursively or just a single instance 47 * 48 * @param \TYPO3\CMS\Backend\Tree\AbstractTree $tree 49 * @param bool $recursive 50 * @return mixed 51 */ 52 abstract public function renderTree(AbstractTree $tree, $recursive = true); 53} 54