本文整理汇总了PHP中Mage_Core_Model_Abstract::_afterDeleteCommit方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Abstract::_afterDeleteCommit方法的具体用法?PHP Mage_Core_Model_Abstract::_afterDeleteCommit怎么用?PHP Mage_Core_Model_Abstract::_afterDeleteCommit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Abstract::_afterDeleteCommit方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _afterDeleteCommit
protected function _afterDeleteCommit()
{
parent::_afterDeleteCommit();
if (!$this->getdata('_m_prevent_replication')) {
Mage::helper('mana_db')->replicate(array('trackKeys' => true, 'filter' => array($this->getResourceName() => array('deleted' => array($this->getId())))));
}
}
示例2: _afterDeleteCommit
protected function _afterDeleteCommit()
{
Mage::getModel('amorderattach/order_field')->deleteField($this->getCode());
parent::_afterDeleteCommit();
Mage::helper('amorderattach')->clearCache();
return $this;
}
示例3: _afterDeleteCommit
protected function _afterDeleteCommit()
{
parent::_afterDeleteCommit();
if ($this->_commonHelper()->isSearchCoreEnabled()) {
$this->_afterDeleteCommitIndexProcess();
}
}
示例4: _afterDeleteCommit
/**
* Init indexing process after store delete commit
*
* @return Mage_Core_Model_Store
*/
protected function _afterDeleteCommit()
{
parent::_afterDeleteCommit();
Mage::getSingleton('index/indexer')->indexEvents(self::ENTITY, Mage_Index_Model_Event::TYPE_DELETE);
return $this;
}
示例5: _afterDeleteCommit
/**
* Delete 'persistent' cookie
*
* @return Mage_Core_Model_Abstract
*/
protected function _afterDeleteCommit()
{
Mage::getSingleton('Mage_Core_Model_Cookie')->delete(Mage_Persistent_Model_Session::COOKIE_NAME);
return parent::_afterDeleteCommit();
}
示例6: _afterDeleteCommit
/**
* Perform actions after object delete
*
* @return Mage_Core_Model_Abstract
*/
protected function _afterDeleteCommit()
{
$this->getResource()->afterDeleteCommit($this);
return parent::_afterDeleteCommit();
}
示例7: _afterDeleteCommit
protected function _afterDeleteCommit()
{
parent::_afterDeleteCommit();
$resource = Mage::getSingleton('core/resource');
$writeConnection = $resource->getConnection('core_write');
$tableName = $resource->getTableName('helpdesk/ticket');
$query = "ALTER TABLE `{$tableName}` DROP `{$this->getDbCode()}`";
$writeConnection->query($query);
$writeConnection->resetDdlCache();
}