source/Application/Model/Article.php
public function getCategoryIds($blActCats = false, $blSkipCache = false)
    {
        $sArticleId = $this->getId();

        if (!isset(self::$_aArticleCats[$sArticleId]) || $blSkipCache) {
            $sSql = $this->_getCategoryIdsSelect($blActCats);
            $aCategoryIds = $this->_selectCategoryIds($sSql, 'oxcatnid');

            $sSql = $this->getSqlForPriceCategories();
            $aPriceCategoryIds = $this->_selectCategoryIds($sSql, 'oxid');

            self::$_aArticleCats[$sArticleId] = array_unique(array_merge($aCategoryIds, $aPriceCategoryIds));
        }

        return self::$_aArticleCats[$sArticleId];
    }
public function getCategoryIds($blActCats = false, $blSkipCache = false)
    {
        $sArticleId = $this->getId();

        if (!isset(self::$_aArticleCats[$sArticleId]) || $blSkipCache) {
            $sSql = $this->_getCategoryIdsSelect($blActCats);
            $aCategoryIds = $this->_selectCategoryIds($sSql, 'oxcatnid');

            $sSql = $this->getSqlForPriceCategories();
            $aPriceCategoryIds = $this->_selectCategoryIds($sSql, 'oxid');

            self::$_aArticleCats[$sArticleId] = array_unique(array_merge($aCategoryIds, $aPriceCategoryIds));
        }

        return self::$_aArticleCats[$sArticleId];
    }
public function getCategoryIds ( $ blActCats = false , $ blSkipCache = false ) { $ sArticleId = $ this -> getId ( ) ; if ( ! isset ( self :: $ _aArticleCats [ $ sArticleId ] ) || $ blSkipCache ) { $ sSql = $ this -> _getCategoryIdsSelect ( $ blActCats ) ; $ aCategoryIds = $ this -> _selectCategoryIds ( $ sSql , 'oxcatnid' ) ; $ sSql = $ this -> getSqlForPriceCategories ( ) ; $ aPriceCategoryIds = $ this -> _selectCategoryIds ( $ sSql , 'oxid' ) ; self :: $ _aArticleCats [ $ sArticleId ] = array_unique ( array_merge ( $ aCategoryIds , $ aPriceCategoryIds ) ) ; } return self :: $ _aArticleCats [ $ sArticleId ] ; }
Returns ID's of categories where this article is assigned

@param bool $blActCats   select categories if all parents are active
@param bool $blSkipCache Whether to skip cache

@return array
Returns ID s of categories where this article is assigned