source/Core/Controller/BaseController.php
public function getActCategory()
    {
        // if active category is not set yet - trying to load it from request params
        // this may be usefull when category component was unable to load active category
        // and we still need some object to mount navigation info
        if ($this->_oClickCat === null) {
            $this->_oClickCat = false;
            $oCategory = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
            if ($oCategory->load($this->getCategoryId())) {
                $this->_oClickCat = $oCategory;
            }
        }

        return $this->_oClickCat;
    }
public function getActCategory()
    {
        // if active category is not set yet - trying to load it from request params
        // this may be usefull when category component was unable to load active category
        // and we still need some object to mount navigation info
        if ($this->_oClickCat === null) {
            $this->_oClickCat = false;
            $oCategory = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
            if ($oCategory->load($this->getCategoryId())) {
                $this->_oClickCat = $oCategory;
            }
        }

        return $this->_oClickCat;
    }
public function getActCategory ( ) { // if active category is not set yet - trying to load it from request params // this may be usefull when category component was unable to load active category // and we still need some object to mount navigation info if ( $ this -> _oClickCat === null ) { $ this -> _oClickCat = false ; $ oCategory = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Category :: class ) ; if ( $ oCategory -> load ( $ this -> getCategoryId ( ) ) ) { $ this -> _oClickCat = $ oCategory ; } } return $ this -> _oClickCat ; }
Returns active category set by categories component; if category is
not set by component - will create category object and will try to
load by id passed by request

@return \OxidEsales\Eshop\Application\Model\Category
Returns active category set by categories component ; if category is not set by component - will create category object and will try to load by id passed by request