本文整理汇总了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();
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例8: _afterSave
protected function _afterSave()
{
foreach ($this->getRateDataCollection() as $dataModel) {
$dataModel->setTaxRateId($this->getId());
$dataModel->save();
}
parent::_afterSave();
}
示例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();
}
示例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();
}
示例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;
}
示例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();
}
示例13: _afterSave
/**
* Rewrite _afterSave
*
* @return \Magestore_Inventorysupplyneeds_Model_Draftpo
*/
protected function _afterSave()
{
parent::_afterSave();
if ($this->getIsUpdateMode()) {
$this->_removeUncheckProducts();
$this->_addProducts();
}
return $this;
}
示例14: _afterSave
public function _afterSave()
{
if (!$this->getVendorPrefix()) {
$this->getResource()->_saveVendorPrefix($this);
}
if (sizeof($this->getStaticPages()) == 0) {
$this->createDefaultPage();
}
return parent::_afterSave();
}
示例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();
}
}