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


PHP Mage_Core_Model_Abstract::_afterSave方法代码示例

本文整理汇总了PHP中Mage_Core_Model_Abstract::_afterSave方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Abstract::_afterSave方法的具体用法?PHP Mage_Core_Model_Abstract::_afterSave怎么用?PHP Mage_Core_Model_Abstract::_afterSave使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Core_Model_Abstract的用法示例。


在下文中一共展示了Mage_Core_Model_Abstract::_afterSave方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _afterSave

 /**
  * Clean related cache if instance contain layout updates
  */
 protected function _afterSave()
 {
     if ($this->hasDataChanges()) {
         $this->_cleanCache();
     }
     return parent::_afterSave();
 }
开发者ID:aoepeople,项目名称:aoe_layoutmanager,代码行数:10,代码来源:Layout.php

示例2: _afterSave

 /**
  * Save manufacturer store, after manufacturer save
  *
  * @return Zeon_Manufacturer_Model_Manufacturer
  */
 protected function _afterSave()
 {
     if ($this->hasStoreIds()) {
         $this->_getResource()->saveManufacturerStore($this);
     }
     return parent::_afterSave();
 }
开发者ID:xiaoguizhidao,项目名称:autotech_design,代码行数:12,代码来源:Manufacturer.php

示例3: _afterSave

 /**
  * After save rule
  * Redeclared for populate rate calculations
  *
  * @return Mage_Tax_Model_Calculation_Rule
  */
 protected function _afterSave()
 {
     parent::_afterSave();
     $this->saveCalculationData();
     AO::dispatchEvent('tax_settings_change_after');
     return $this;
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:13,代码来源:Calculation_Rule.php

示例4: _afterSave

 protected function _afterSave()
 {
     //parent::_afterSave($object);
     $mask = Mage::getModel('aitcg/mask')->load($this->getMaskId());
     $filename = $mask->getImagesPath() . 'alpha' . DS . $mask->getFilename();
     $filename_white = $mask->getImagesPath() . 'alpha' . DS . 'white_' . $mask->getFilename();
     $filename_white_pdf = $mask->getImagesPath() . 'alpha' . DS . 'white_pdf_' . $mask->getFilename();
     $filename_black = $mask->getImagesPath() . 'alpha' . DS . 'black_' . $mask->getFilename();
     $path = $this->getImagesPath();
     $filename_new = $path . 'mask_inverted.png';
     $filename_new_white = $path . 'white_mask_inverted.png';
     $filename_new_black = $path . 'black_mask_inverted.png';
     $filename_new_white_pdf = $path . 'white_pdf_mask_inverted.png';
     if (file_exists($filename)) {
         mkdir($path, 0777, true);
         copy($filename, $filename_new);
     }
     if (file_exists($filename_white)) {
         copy($filename_white, $filename_new_white);
     }
     if (file_exists($filename_black)) {
         copy($filename_black, $filename_new_black);
     }
     if (file_exists($filename_white_pdf)) {
         copy($filename_white_pdf, $filename_new_white_pdf);
     }
     //$this->createTumb();
     return parent::_afterSave();
 }
开发者ID:Eximagen,项目名称:BulletMagento,代码行数:29,代码来源:Created.php

示例5: _afterSave

 /**
  * Processing object after save data
  * Updates relevant grid table records.
  *
  * @return Mage_Core_Model_Abstract
  */
 protected function _afterSave()
 {
     if (!$this->getForceUpdateGridRecords()) {
         $this->_getResource()->updateGridRecords($this->getId());
     }
     return parent::_afterSave();
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:13,代码来源:Abstract.php

示例6: _afterSave

 /**
  * After save process
  *
  * @return Mage_Catalog_Model_Product_Type_Configurable_Attribute
  */
 protected function _afterSave()
 {
     parent::_afterSave();
     $this->_getResource()->saveLabel($this);
     $this->_getResource()->savePrices($this);
     return $this;
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:12,代码来源:Attribute.php

示例7: _afterSave

 /**
  * Clean cache for front-end menu
  *
  * @return  Mage_Core_Model_Url_Rewrite
  */
 protected function _afterSave()
 {
     if ($this->hasCategoryId()) {
         $this->_cacheTag = array(Mage_Catalog_Model_Category::CACHE_TAG, Mage_Core_Model_Store_Group::CACHE_TAG);
     }
     parent::_afterSave();
     return $this;
 }
开发者ID:buttasg,项目名称:cowgirlk,代码行数:13,代码来源:Rewrite.php

示例8: _afterSave

 protected function _afterSave()
 {
     foreach ($this->getRateDataCollection() as $dataModel) {
         $dataModel->setTaxRateId($this->getId());
         $dataModel->save();
     }
     parent::_afterSave();
 }
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:8,代码来源:Rate.php

示例9: _afterSave

 protected function _afterSave()
 {
     if (is_string($this->getGuiData())) {
         $this->setGuiData(unserialize($this->getGuiData()));
     }
     Mage::getModel('core/convert_history')->setProfileId($this->getId())->setActionCode($this->getOrigData('profile_id') ? 'update' : 'create')->save();
     parent::_afterSave();
 }
开发者ID:codercv,项目名称:urbansurprisedev,代码行数:8,代码来源:Profile.php

示例10: _afterSave

 protected function _afterSave()
 {
     if (Mage::registry('amorderattach_add_field')) {
         $data = array('code' => $this->getCode(), 'type' => $this->getType(), 'apply_to_each_product' => $this->getApplyToEachProduct());
         Mage::register('amorderattach_additional_data', $data);
     }
     return parent::_afterSave();
 }
开发者ID:CE-Webmaster,项目名称:CE-Hub,代码行数:8,代码来源:Field.php

示例11: _afterSave

 /**
  * Processing object after save data
  *
  * @return Maverick_Crawler_Model_Crawler
  */
 protected function _afterSave()
 {
     parent::_afterSave();
     if ($type = $this->getType()) {
         Mage::dispatchEvent($type . '_save_after', $this->_getEventData());
     }
     return $this;
 }
开发者ID:JoniRambro,项目名称:magento-full-page-cache-crawler,代码行数:13,代码来源:Crawler.php

示例12: _afterSave

 /**
  * @return Firegento_FlexCms_Model_Content_Data
  */
 protected function _afterSave()
 {
     /** @var Firegento_FlexCms_Model_Content_Data $contentData */
     $contentData = $this->getContentDataModel();
     $contentData->setContent($this->getContent());
     $contentData->setIsActive($this->getIsActive());
     $contentData->save();
     return parent::_afterSave();
 }
开发者ID:OurLaborisJoy,项目名称:FireGento_FlexCms,代码行数:12,代码来源:Content.php

示例13: _afterSave

 /**
  * Rewrite _afterSave
  * 
  * @return \Magestore_Inventorysupplyneeds_Model_Draftpo
  */
 protected function _afterSave()
 {
     parent::_afterSave();
     if ($this->getIsUpdateMode()) {
         $this->_removeUncheckProducts();
         $this->_addProducts();
     }
     return $this;
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:14,代码来源:Draftpo.php

示例14: _afterSave

 public function _afterSave()
 {
     if (!$this->getVendorPrefix()) {
         $this->getResource()->_saveVendorPrefix($this);
     }
     if (sizeof($this->getStaticPages()) == 0) {
         $this->createDefaultPage();
     }
     return parent::_afterSave();
 }
开发者ID:shashankkanungo,项目名称:magento,代码行数:10,代码来源:SM_Vendors_Model_Vendor.php

示例15: _afterSave

 /**
  * there is no afterCommitCallback on earlier
  * versions, use the closest alternative
  */
 protected function _afterSave()
 {
     if (version_compare(Mage::getVersion(), '1.4.0.0', '<')) {
         if (!$this->getNoCMB()) {
             //ping Jirafe
             Mage::getSingleton('foomanjirafe/jirafe')->sendCMB($this->getSiteId());
         }
         return parent::_afterSave();
     }
 }
开发者ID:nhienvo,项目名称:magento-plugin,代码行数:14,代码来源:Event.php


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