当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Core_Model_Abstract::_afterDelete方法代码示例

本文整理汇总了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();
 }
开发者ID:shashankkanungo,项目名称:magento,代码行数:7,代码来源:SM_Vendors_Model_Vendor.php

示例2: _afterDelete

 protected function _afterDelete()
 {
     foreach ($this->getNewsCollection() as $news) {
         $news->setCategoryId(0)->save();
     }
     return parent::_afterDelete();
 }
开发者ID:Aleksandr-Kachura,项目名称:magento,代码行数:7,代码来源:Category.php

示例3: _afterDelete

 protected function _afterDelete()
 {
     /** @var $field Clean_Cms_Model_Field */
     foreach ($this->getFields() as $field) {
         $field->delete();
     }
     return parent::_afterDelete();
 }
开发者ID:asteireif,项目名称:clean-cms,代码行数:8,代码来源:Fieldset.php

示例4: _afterDelete

 /**
  * @return Mage_Core_Model_Abstract|void
  */
 protected function _afterDelete()
 {
     try {
         $this->deleteThumbnail();
     } catch (Open_Gallery_Exception $e) {
         Mage::logException($e);
     }
     parent::_afterDelete();
 }
开发者ID:shakhawat4g,项目名称:Magento-Gallery-Extension,代码行数:12,代码来源:Item.php

示例5: _afterDelete

 protected function _afterDelete()
 {
     $helper = Mage::helper('dsnews');
     @unlink($helper->getImagePath($this->getId()));
     return parent::_afterDelete();
 }
开发者ID:Aleksandr-Kachura,项目名称:magento,代码行数:6,代码来源:News.php

示例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;
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:16,代码来源:Staging.php

示例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();
 }
开发者ID:riker09,项目名称:EasyTemplate,代码行数:8,代码来源:Group.php

示例8: _afterDelete

 /**
  * rewrite in order to clear configuration cache
  *
  * @return Mage_Core_Model_Store
  */
 protected function _afterDelete()
 {
     parent::_afterDelete();
     Mage::getConfig()->removeCache();
     return $this;
 }
开发者ID:Airmal,项目名称:Magento-Em,代码行数:11,代码来源:Store.php

示例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();
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:11,代码来源:Version.php

示例10: _beforeDelete

 protected function _beforeDelete()
 {
     $this->removeFiles();
     return parent::_afterDelete();
 }
开发者ID:vstorm83,项目名称:ausport,代码行数:5,代码来源:Sitemap.php

示例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();
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:13,代码来源:Stats.php

示例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();
 }
开发者ID:rajarshc,项目名称:Rooja,代码行数:7,代码来源:Currency.php

示例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();
 }
开发者ID:walexer,项目名称:magento-mongo,代码行数:12,代码来源:Abstract.php

示例14: _afterDelete

 /**
  * Delete cron task
  *
  * @return Enterprise_ImportExport_Model_Scheduled_Operation
  */
 protected function _afterDelete()
 {
     $this->_dropCronTask();
     return parent::_afterDelete();
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:10,代码来源:Operation.php

示例15: _afterDelete

 protected function _afterDelete()
 {
     foreach ($this->getAllSlides() as $slide) {
         $slide->delete();
     }
     Mage::app()->cleanCache(array(self::CACHE_TAGS));
     return parent::_afterDelete();
 }
开发者ID:ramantalkin,项目名称:tmp01skin,代码行数:8,代码来源:Slider.php


注:本文中的Mage_Core_Model_Abstract::_afterDelete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。