source/Application/Model/CategoryList.php
public function buildTree($sActCat)
    {
        startProfile("buildTree");

        $this->_sActCat = $sActCat;
        $this->load();

        // PostProcessing
        if (!$this->isAdmin()) {
            // remove inactive categories
            $this->_ppRemoveInactiveCategories();

            // add active cat as full object
            $this->_ppLoadFullCategory($sActCat);

            // builds navigation path
            $this->_ppAddPathInfo();

            // add content categories
            $this->_ppAddContentCategories();

            // build tree structure
            $this->_ppBuildTree();
        }

        stopProfile("buildTree");
    }
public function buildTree($sActCat)
    {
        startProfile("buildTree");

        $this->_sActCat = $sActCat;
        $this->load();

        // PostProcessing
        if (!$this->isAdmin()) {
            // remove inactive categories
            $this->_ppRemoveInactiveCategories();

            // add active cat as full object
            $this->_ppLoadFullCategory($sActCat);

            // builds navigation path
            $this->_ppAddPathInfo();

            // add content categories
            $this->_ppAddContentCategories();

            // build tree structure
            $this->_ppBuildTree();
        }

        stopProfile("buildTree");
    }
public function buildTree ( $ sActCat ) { startProfile ( "buildTree" ) ; $ this -> _sActCat = $ sActCat ; $ this -> load ( ) ; // PostProcessing if ( ! $ this -> isAdmin ( ) ) { // remove inactive categories $ this -> _ppRemoveInactiveCategories ( ) ; // add active cat as full object $ this -> _ppLoadFullCategory ( $ sActCat ) ; // builds navigation path $ this -> _ppAddPathInfo ( ) ; // add content categories $ this -> _ppAddContentCategories ( ) ; // build tree structure $ this -> _ppBuildTree ( ) ; } stopProfile ( "buildTree" ) ; }
Fetches reversed raw categories and does all necessary postprocessing for
removing invisible or forbidden categories, building oc navigation path,
adding content categories and building tree structure.

@param string $sActCat Active category (default null)
Fetches reversed raw categories and does all necessary postprocessing for removing invisible or forbidden categories building oc navigation path adding content categories and building tree structure .