public function SiteTreeAsUL()
    {
        $treeClass = $this->config()->get('tree_class');
        $filter = $this->getSearchFilter();

        DataObject::singleton($treeClass)->prepopulateTreeDataCache(null, [
            'childrenMethod' => $filter ? $filter->getChildrenMethod() : 'AllChildrenIncludingDeleted',
            'numChildrenMethod' => $filter ? $filter->getNumChildrenMethod() : 'numChildren',
        ]);

        $html = $this->getSiteTreeFor($treeClass);

        $this->extend('updateSiteTreeAsUL', $html);

        return $html;
    }
public function SiteTreeAsUL()
    {
        $treeClass = $this->config()->get('tree_class');
        $filter = $this->getSearchFilter();

        DataObject::singleton($treeClass)->prepopulateTreeDataCache(null, [
            'childrenMethod' => $filter ? $filter->getChildrenMethod() : 'AllChildrenIncludingDeleted',
            'numChildrenMethod' => $filter ? $filter->getNumChildrenMethod() : 'numChildren',
        ]);

        $html = $this->getSiteTreeFor($treeClass);

        $this->extend('updateSiteTreeAsUL', $html);

        return $html;
    }
public function SiteTreeAsUL ( ) { $ treeClass = $ this -> config ( ) -> get ( 'tree_class' ) ; $ filter = $ this -> getSearchFilter ( ) ; DataObject :: singleton ( $ treeClass ) -> prepopulateTreeDataCache ( null , [ 'childrenMethod' => $ filter ? $ filter -> getChildrenMethod ( ) : 'AllChildrenIncludingDeleted' , 'numChildrenMethod' => $ filter ? $ filter -> getNumChildrenMethod ( ) : 'numChildren' , ] ) ; $ html = $ this -> getSiteTreeFor ( $ treeClass ) ; $ this -> extend ( 'updateSiteTreeAsUL' , $ html ) ; return $ html ; }
Return the entire site tree as a nested set of ULs
Return the entire site tree as a nested set of ULs