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


PHP Mage_Core_Model_Abstract::afterCommitCallback方法代码示例

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


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

示例1: afterCommitCallback

 public function afterCommitCallback()
 {
     parent::afterCommitCallback();
     if (!$this->getdata('_m_prevent_replication')) {
         Mage::helper('mana_db')->replicate(array('trackKeys' => true, 'filter' => array($this->getResourceName() => array('saved' => array($this->getId())))));
     }
 }
开发者ID:xiaoguizhidao,项目名称:cupboardglasspipes.ecomitize.com,代码行数:7,代码来源:Object.php

示例2: afterCommitCallback

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

示例3: afterCommitCallback

 /**
  * @see parent
  */
 public function afterCommitCallback()
 {
     parent::afterCommitCallback();
     if (!$this->getSilence()) {
         $this->_getHelper()->createAnnouncement($this);
     }
     return $this;
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:11,代码来源:Item.php

示例4: afterCommitCallback

 public function afterCommitCallback()
 {
     if (!$this->getNoCMB()) {
         //ping Jirafe
         Mage::getSingleton('foomanjirafe/jirafe')->sendCMB($this->getSiteId());
     }
     return parent::afterCommitCallback();
 }
开发者ID:nhp,项目名称:magento-plugin,代码行数:8,代码来源:Event.php

示例5: afterCommitCallback

 /**
  * Init indexing process after tag data commit
  *
  * @return Mage_Tag_Model_Tag_Relation
  */
 public function afterCommitCallback()
 {
     parent::afterCommitCallback();
     Mage::getSingleton('index/indexer')->processEntityAction($this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE);
     return $this;
 }
开发者ID:evinw,项目名称:project_bloom_magento,代码行数:11,代码来源:Relation.php

示例6: afterCommitCallback

 public function afterCommitCallback()
 {
     parent::afterCommitCallback();
     return $this;
 }
开发者ID:xiaoguizhidao,项目名称:magento,代码行数:5,代码来源:Vendor.php

示例7: afterCommitCallback

 /**
  * Init indexing process after category data commit
  *
  * @return Mage_Catalog_Model_Category
  */
 public function afterCommitCallback()
 {
     parent::afterCommitCallback();
     if (!Mage::registry('m_prevent_indexing_on_save')) {
         $this->getIndexerSingleton()->processEntityAction($this, $this->getScope(), Mage_Index_Model_Event::TYPE_SAVE);
     }
     return $this;
 }
开发者ID:xiaoguizhidao,项目名称:cupboardglasspipes.ecomitize.com,代码行数:13,代码来源:Entity.php

示例8: afterCommitCallback

 /**
  * Callback function which called after transaction commit in resource model
  *
  * @return Mage_CatalogInventory_Model_Stock_Item
  */
 public function afterCommitCallback()
 {
     parent::afterCommitCallback();
     /** @var \Mage_Index_Model_Indexer $indexer */
     $indexer = Mage::getSingleton('index/indexer');
     if ($this->_processIndexEvents) {
         $indexer->processEntityAction($this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE);
     } else {
         $indexer->logEvent($this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE);
     }
     return $this;
 }
开发者ID:newedge-media,项目名称:medpage-easylink,代码行数:17,代码来源:__checkout.php

示例9: afterCommitCallback

 /**
  * Processing object after save data
  *
  * @return Mage_Core_Model_Abstract
  */
 public function afterCommitCallback()
 {
     if ($this->getIsNew()) {
         $this->create();
     } else {
         $this->update();
     }
     return parent::afterCommitCallback();
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:14,代码来源:Staging.php

示例10: afterCommitCallback

 /**
  * Save any meta key values that have changed
  *
  * @return $this
  */
 public function afterCommitCallback()
 {
     parent::afterCommitCallback();
     if ($this->hasMeta()) {
         foreach ($this->_metaKeysChanged as $index => $key) {
             if (isset($this->_meta[$key])) {
                 $this->getResource()->setMetaValue($this, $this->_getRealMetaKey($key), $this->_meta[$key]);
             }
             unset($this->_metaKeysChanged[$index]);
         }
     }
     return $this;
 }
开发者ID:LiamMcArthur,项目名称:extension-fishpig-wordpress-integration,代码行数:18,代码来源:Abstract.php

示例11: afterCommitCallback

 /**
  * Overridden to reset original data after the _afterSave callback.
  *
  * @return Cm_Mongo_Model_Abstract
  */
 public function afterCommitCallback()
 {
     parent::afterCommitCallback();
     if ($this->_dataSaveAllowed) {
         $this->setOrigData();
     }
     return $this;
 }
开发者ID:walexer,项目名称:magento-mongo,代码行数:13,代码来源:Abstract.php


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