src/Contao/View/Contao2BackendView/TreeView.php
public function ajaxTreeView($rootId, $providerName, $level)
    {
        $this->toggleModel($providerName, $rootId);

        $collection = $this->loadCollection($rootId, $level, $providerName);

        $treeClass = '';
        switch (6) {
            case 5:
                $treeClass = 'tree';
                break;

            case 6:
                $treeClass = 'tree_xtnd';
                break;

            default:
        }

        return $this->generateTreeView($collection, $treeClass);
    }
public function ajaxTreeView($rootId, $providerName, $level)
    {
        $this->toggleModel($providerName, $rootId);

        $collection = $this->loadCollection($rootId, $level, $providerName);

        $treeClass = '';
        switch (6) {
            case 5:
                $treeClass = 'tree';
                break;

            case 6:
                $treeClass = 'tree_xtnd';
                break;

            default:
        }

        return $this->generateTreeView($collection, $treeClass);
    }
public function ajaxTreeView ( $ rootId , $ providerName , $ level ) { $ this -> toggleModel ( $ providerName , $ rootId ) ; $ collection = $ this -> loadCollection ( $ rootId , $ level , $ providerName ) ; $ treeClass = '' ; switch ( 6 ) { case 5 : $ treeClass = 'tree' ; break ; case 6 : $ treeClass = 'tree_xtnd' ; break ; default : } return $ this -> generateTreeView ( $ collection , $ treeClass ) ; }
Handle ajax rendering of a sub tree.

@param string $rootId       Id of the root node.
@param string $providerName Name of the data provider where the model is contained within.
@param int    $level        Level depth of the model in the whole tree.

@return string
Handle ajax rendering of a sub tree .