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()))))); } }
/** * 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(); }
/** * @see parent */ public function afterCommitCallback() { parent::afterCommitCallback(); if (!$this->getSilence()) { $this->_getHelper()->createAnnouncement($this); } return $this; }
public function afterCommitCallback() { if (!$this->getNoCMB()) { //ping Jirafe Mage::getSingleton('foomanjirafe/jirafe')->sendCMB($this->getSiteId()); } return parent::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; }
public function afterCommitCallback() { parent::afterCommitCallback(); return $this; }
/** * 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; }
/** * 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; }
/** * Processing object after save data * * @return Mage_Core_Model_Abstract */ public function afterCommitCallback() { if ($this->getIsNew()) { $this->create(); } else { $this->update(); } return parent::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; }
/** * 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; }