本文整理汇总了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())))));
}
}
示例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();
}
示例3: afterCommitCallback
/**
* @see parent
*/
public function afterCommitCallback()
{
parent::afterCommitCallback();
if (!$this->getSilence()) {
$this->_getHelper()->createAnnouncement($this);
}
return $this;
}
示例4: afterCommitCallback
public function afterCommitCallback()
{
if (!$this->getNoCMB()) {
//ping Jirafe
Mage::getSingleton('foomanjirafe/jirafe')->sendCMB($this->getSiteId());
}
return parent::afterCommitCallback();
}
示例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;
}
示例6: afterCommitCallback
public function afterCommitCallback()
{
parent::afterCommitCallback();
return $this;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}