src/ShopArticlePreorderBundle/pkgShop/objects/db/TPkgShopArticlePreorder_ShopArticle.class.php
protected function StockWasUpdatedHook($dOldValue, $dNewValue)
    {
        $bReturn = parent::StockWasUpdatedHook($dOldValue, $dNewValue);
        if ($dOldValue < 1 && $dNewValue > 0) {
            $oShopArticlePreorderList = &TdbPkgShopArticlePreorderList::GetListForShopArticleId($this->id);
            while ($oShopArticlePreorder = $oShopArticlePreorderList->Next()) {
                $oShopArticlePreorder->SendMail();
            }
        }

        return $bReturn;
    }
protected function StockWasUpdatedHook($dOldValue, $dNewValue)
    {
        $bReturn = parent::StockWasUpdatedHook($dOldValue, $dNewValue);
        if ($dOldValue < 1 && $dNewValue > 0) {
            $oShopArticlePreorderList = &TdbPkgShopArticlePreorderList::GetListForShopArticleId($this->id);
            while ($oShopArticlePreorder = $oShopArticlePreorderList->Next()) {
                $oShopArticlePreorder->SendMail();
            }
        }

        return $bReturn;
    }
protected function StockWasUpdatedHook ( $ dOldValue , $ dNewValue ) { $ bReturn = parent :: StockWasUpdatedHook ( $ dOldValue , $ dNewValue ) ; if ( $ dOldValue < 1 && $ dNewValue > 0 ) { $ oShopArticlePreorderList = & TdbPkgShopArticlePreorderList :: GetListForShopArticleId ( $ this -> id ) ; while ( $ oShopArticlePreorder = $ oShopArticlePreorderList -> Next ( ) ) { $ oShopArticlePreorder -> SendMail ( ) ; } } return $ bReturn ; }
hook called when the stock value of the article changed.

@param float $dOldValue
@param float $dNewValue

@return bool
hook called when the stock value of the article changed .