source/Application/Component/CategoriesComponent.php
protected function _loadCategoryTree($sActCat)
    {
        /** @var \OxidEsales\Eshop\Application\Model\CategoryList $oCategoryTree */
        $oCategoryTree = oxNew(\OxidEsales\Eshop\Application\Model\CategoryList::class);
        $oCategoryTree->buildTree($sActCat);

        $oParentView = $this->getParent();

        // setting active category tree
        $oParentView->setCategoryTree($oCategoryTree);
        $this->setCategoryTree($oCategoryTree);

        // setting active category
        $oParentView->setActiveCategory($oCategoryTree->getClickCat());
    }
protected function _loadCategoryTree($sActCat)
    {
        /** @var \OxidEsales\Eshop\Application\Model\CategoryList $oCategoryTree */
        $oCategoryTree = oxNew(\OxidEsales\Eshop\Application\Model\CategoryList::class);
        $oCategoryTree->buildTree($sActCat);

        $oParentView = $this->getParent();

        // setting active category tree
        $oParentView->setCategoryTree($oCategoryTree);
        $this->setCategoryTree($oCategoryTree);

        // setting active category
        $oParentView->setActiveCategory($oCategoryTree->getClickCat());
    }
protected function _loadCategoryTree ( $ sActCat ) { /** @var \OxidEsales\Eshop\Application\Model\CategoryList $oCategoryTree */ $ oCategoryTree = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ CategoryList :: class ) ; $ oCategoryTree -> buildTree ( $ sActCat ) ; $ oParentView = $ this -> getParent ( ) ; // setting active category tree $ oParentView -> setCategoryTree ( $ oCategoryTree ) ; $ this -> setCategoryTree ( $ oCategoryTree ) ; // setting active category $ oParentView -> setActiveCategory ( $ oCategoryTree -> getClickCat ( ) ) ; }
Category tree loader

@param string $sActCat active category id
Category tree loader