本文整理汇总了PHP中Mage_Core_Model_Abstract::_afterDelete方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Abstract::_afterDelete方法的具体用法?PHP Mage_Core_Model_Abstract::_afterDelete怎么用?PHP Mage_Core_Model_Abstract::_afterDelete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Abstract::_afterDelete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _afterDelete
protected function _afterDelete()
{
if ($this->getUserModel()->getId()) {
$this->getUserModel()->delete();
}
return parent::_afterDelete();
}
示例2: _afterDelete
protected function _afterDelete()
{
foreach ($this->getNewsCollection() as $news) {
$news->setCategoryId(0)->save();
}
return parent::_afterDelete();
}
示例3: _afterDelete
protected function _afterDelete()
{
/** @var $field Clean_Cms_Model_Field */
foreach ($this->getFields() as $field) {
$field->delete();
}
return parent::_afterDelete();
}
示例4: _afterDelete
/**
* @return Mage_Core_Model_Abstract|void
*/
protected function _afterDelete()
{
try {
$this->deleteThumbnail();
} catch (Open_Gallery_Exception $e) {
Mage::logException($e);
}
parent::_afterDelete();
}
示例5: _afterDelete
protected function _afterDelete()
{
$helper = Mage::helper('dsnews');
@unlink($helper->getImagePath($this->getId()));
return parent::_afterDelete();
}
示例6: _afterDelete
/**
* Processing staging after delete
*
* @return Enterprise_Staging_Model_Staging
*/
protected function _afterDelete()
{
if ($this->getStagingWebsite()) {
$this->getStagingWebsite()->delete();
}
foreach ($this->getLogsCollection() as $log) {
$log->delete();
}
parent::_afterDelete();
return $this;
}
示例7: _afterDelete
protected function _afterDelete()
{
$dir = Mage::getBaseDir('media') . DS . 'easytemplate' . DS . $this->getId();
if (file_exists($dir)) {
Mage::helper('easytemplate/file')->rrmdir($dir);
}
return parent::_afterDelete();
}
示例8: _afterDelete
/**
* rewrite in order to clear configuration cache
*
* @return Mage_Core_Model_Store
*/
protected function _afterDelete()
{
parent::_afterDelete();
Mage::getConfig()->removeCache();
return $this;
}
示例9: _afterDelete
/**
* Removing unneeded data from increment table after version was removed.
*
* @param $observer
* @return Enterprise_Cms_Model_Observer
*/
protected function _afterDelete()
{
Mage::getResourceSingleton('enterprise_cms/increment')->cleanIncrementRecord(Enterprise_Cms_Model_Increment::TYPE_PAGE, $this->getId(), Enterprise_Cms_Model_Increment::LEVEL_REVISION);
return parent::_afterDelete();
}
示例10: _beforeDelete
protected function _beforeDelete()
{
$this->removeFiles();
return parent::_afterDelete();
}
示例11: _afterDelete
public function _afterDelete()
{
if ($customer_id = $this->getCustomerId()) {
$allStores = Mage::app()->getStores();
foreach ($allStores as $_eachStoreId => $val) {
//Mage::helper('rewardpoints')->processRecordFlatAction($customer_id, Mage::app()->getStore($_eachStoreId)->getId());
$model = Mage::getModel('rewardpoints/flatstats');
$model->processRecordFlat($customer_id, Mage::app()->getStore($_eachStoreId)->getId(), false, true);
}
}
//return $this;
return parent::_afterDelete();
}
示例12: _afterDelete
public function _afterDelete()
{
// TODO: Change all rules that are associated with giving points in this currency
// to instead give points of no qty
// Next, send a warning to the administrator????
return parent::_afterDelete();
}
示例13: _afterDelete
/**
* Overridden to save the object in the cache if allowed
*
* @return Cm_Mongo_Model_Abstract
*/
protected function _afterDelete()
{
if ($this->isCacheEnabled()) {
$this->getResource()->removeObjectFromCache($this);
}
return parent::_afterDelete();
}
示例14: _afterDelete
/**
* Delete cron task
*
* @return Enterprise_ImportExport_Model_Scheduled_Operation
*/
protected function _afterDelete()
{
$this->_dropCronTask();
return parent::_afterDelete();
}
示例15: _afterDelete
protected function _afterDelete()
{
foreach ($this->getAllSlides() as $slide) {
$slide->delete();
}
Mage::app()->cleanCache(array(self::CACHE_TAGS));
return parent::_afterDelete();
}