source/Application/Model/Article.php
protected function _onChangeResetCounts($sOxid, $sVendorId = null, $sManufacturerId = null)
    {
        $myUtilsCount = \OxidEsales\Eshop\Core\Registry::getUtilsCount();

        if ($sVendorId) {
            $myUtilsCount->resetVendorArticleCount($sVendorId);
        }

        if ($sManufacturerId) {
            $myUtilsCount->resetManufacturerArticleCount($sManufacturerId);
        }

        $aCategoryIds = $this->getCategoryIds();
        //also reseting category counts
        foreach ($aCategoryIds as $sCatId) {
            $myUtilsCount->resetCatArticleCount($sCatId);
        }
    }
protected function _onChangeResetCounts($sOxid, $sVendorId = null, $sManufacturerId = null)
    {
        $myUtilsCount = \OxidEsales\Eshop\Core\Registry::getUtilsCount();

        if ($sVendorId) {
            $myUtilsCount->resetVendorArticleCount($sVendorId);
        }

        if ($sManufacturerId) {
            $myUtilsCount->resetManufacturerArticleCount($sManufacturerId);
        }

        $aCategoryIds = $this->getCategoryIds();
        //also reseting category counts
        foreach ($aCategoryIds as $sCatId) {
            $myUtilsCount->resetCatArticleCount($sCatId);
        }
    }
protected function _onChangeResetCounts ( $ sOxid , $ sVendorId = null , $ sManufacturerId = null ) { $ myUtilsCount = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsCount ( ) ; if ( $ sVendorId ) { $ myUtilsCount -> resetVendorArticleCount ( $ sVendorId ) ; } if ( $ sManufacturerId ) { $ myUtilsCount -> resetManufacturerArticleCount ( $ sManufacturerId ) ; } $ aCategoryIds = $ this -> getCategoryIds ( ) ; //also reseting category counts foreach ( $ aCategoryIds as $ sCatId ) { $ myUtilsCount -> resetCatArticleCount ( $ sCatId ) ; } }
Resets category and vendor counts. This method is supposed to be called on article change trigger.

@param string $sOxid           object to reset id ID
@param string $sVendorId       Vendor ID
@param string $sManufacturerId Manufacturer ID
Resets category and vendor counts . This method is supposed to be called on article change trigger .