TYPO3 CMS  TYPO3_6-2
AbstractTree.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Backend\Tree;
3 
21 abstract class AbstractTree {
22 
28  protected $dataProvider = NULL;
29 
35  protected $nodeRenderer = NULL;
36 
41  public function setDataProvider(\TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider $dataProvider) {
42  $this->dataProvider = $dataProvider;
43  }
44 
48  public function getDataProvider() {
49  return $this->dataProvider;
50  }
51 
56  public function setNodeRenderer(\TYPO3\CMS\Backend\Tree\Renderer\AbstractTreeRenderer $nodeRenderer) {
57  $this->nodeRenderer = $nodeRenderer;
58  }
59 
63  public function getNodeRenderer() {
64  return $this->nodeRenderer;
65  }
66 
72  abstract public function getRoot();
73 
74 }
setDataProvider(\TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider $dataProvider)
setNodeRenderer(\TYPO3\CMS\Backend\Tree\Renderer\AbstractTreeRenderer $nodeRenderer)