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


PHP Mage_Core_Model_Mysql4_Abstract::_afterDelete方法代码示例

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


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

示例1: _afterDelete

 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     //delete values
     $this->_getReadAdapter()->delete($this->getTable('webforms/results_values'), 'field_id =' . $object->getId());
     Mage::dispatchEvent('webforms_field_delete', array('field' => $object));
     return parent::_afterDelete($object);
 }
开发者ID:monarcmoso,项目名称:beta2,代码行数:7,代码来源:SingPost_WebForms_Model_Mysql4_Fields.php

示例2: _afterDelete

 /**
  * After delete process
  *
  * @param Mage_Core_Model_Abstract $object
  * @return Mage_Bundle_Model_Mysql4_Option
  */
 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     parent::_afterDelete($object);
     $condition = $this->_getWriteAdapter()->quoteInto('option_id = ?', $object->getId());
     $this->_getWriteAdapter()->delete($this->getTable('option_value'), $condition);
     return $this;
 }
开发者ID:jauderho,项目名称:magento-mirror,代码行数:13,代码来源:Option.php

示例3: _afterDelete

	public function _afterDelete(Mage_Core_Model_Abstract $object){
		//delete values
		$values = $this->_getReadAdapter()->delete($this->getTable('webforms/results_values'),
			'result_id = '. $object->getId()
		);	
		
		return parent::_afterDelete($object);
	}
开发者ID:riteshsahu1981,项目名称:captainkyso,代码行数:8,代码来源:Results.php

示例4: _afterDelete

	public function _afterDelete(Mage_Core_Model_Abstract $object){
		//set fields fieldset_id to null
		$fields = Mage::getModel('webforms/fields')->getCollection()->addFilter('fieldset_id',$object->getId());
		foreach($fields as $field){
			$field->setFieldsetId(0)->save();
		}
		return parent::_afterDelete($object);
	}	
开发者ID:riteshsahu1981,项目名称:captainkyso,代码行数:8,代码来源:Fieldsets.php

示例5: _afterDelete

 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     //delete values
     $values = $this->_getReadAdapter()->delete($this->getTable('webforms/results_values'), 'result_id = ' . $object->getId());
     $dir = Mage::getBaseDir('media') . DS . 'webforms' . DS . $object->getId();
     $this->rrmdir($dir);
     Mage::dispatchEvent('webforms_result_delete', array('result' => $object));
     return parent::_afterDelete($object);
 }
开发者ID:pankajsinghjarial,项目名称:SYLC,代码行数:9,代码来源:Results.php

示例6: _afterDelete

 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     //set fields fieldset_id to null
     $fields = Mage::getModel('webforms/fields')->getCollection()->addFilter('fieldset_id', $object->getId());
     foreach ($fields as $field) {
         $field->setFieldsetId(0)->save();
     }
     Mage::dispatchEvent('webforms_fieldset_delete', array('fieldset' => $object));
     return parent::_afterDelete($object);
 }
开发者ID:rafaelferreiraxd,项目名称:modulos-magento,代码行数:10,代码来源:Fieldsets.php

示例7: _afterDelete

 protected function _afterDelete(Mage_Core_Model_Abstract $group)
 {
     $customerCollection = Mage::getResourceModel('customer/customer_collection')->addAttributeToFilter('group_id', $group->getId())->load();
     foreach ($customerCollection as $customer) {
         $defaultGroupId = Mage::getStoreConfig(Mage_Customer_Model_Group::XML_PATH_DEFAULT_ID, $customer->getStoreId());
         $customer->setGroupId($defaultGroupId);
         $customer->save();
     }
     return parent::_afterDelete($group);
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:10,代码来源:Group.php

示例8: _afterDelete

 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     $condition = $this->_getWriteAdapter()->quoteInto('slider_id = ?', $object->getId());
     // Stores
     $this->_getWriteAdapter()->delete($this->getTable('auguria_sliders/stores'), $condition);
     // Cms pages
     $this->_getWriteAdapter()->delete($this->getTable('auguria_sliders/pages'), $condition);
     // Category ids
     $this->_getWriteAdapter()->delete($this->getTable('auguria_sliders/categories'), $condition);
     return parent::_afterDelete($object);
 }
开发者ID:santhosh400,项目名称:ecart,代码行数:11,代码来源:Sliders.php

示例9: _afterDelete

	protected function _afterDelete(Mage_Core_Model_Abstract $object){
		//delete fields
		$fields = Mage::getModel('webforms/fields')->getCollection()->addFilter('webform_id',$object->getId());
		foreach($fields as $field){
			$field->delete();
		}
		//delete fieldsets
		$fieldsets = Mage::getModel('webforms/fieldsets')->getCollection()->addFilter('webform_id',$object->getId());
		foreach($fieldsets as $fieldset){
			$fieldset->delete();
		}
		return parent::_afterDelete($object);
	}
开发者ID:riteshsahu1981,项目名称:captainkyso,代码行数:13,代码来源:Webforms.php

示例10: _afterDelete

 /**
  * Perform actions after object delete.
  * Delete layout updates by layout update ids collected in _beforeSave
  *
  * @param Mage_Widget_Model_Widget_Instance $object
  * @return Mage_Widget_Model_Mysql4_Widget_Instance
  */
 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     $this->_deleteLayoutUpdates($object->getLayoutUpdateIdsToDelete());
     return parent::_afterDelete($object);
 }
开发者ID:hunnybohara,项目名称:magento-chinese-localization,代码行数:12,代码来源:Instance.php

示例11: _afterDelete

 /**
  * Perform actions after object delete
  * Prepare rating data for reaggregate all data for reviews
  *
  * @param Mage_Core_Model_Abstract $object
  * @return Mage_Rating_Model_Mysql4_Rating
  */
 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     parent::_afterDelete($object);
     $data = $this->_getEntitySummaryData($object);
     $summary = array();
     foreach ($data as $row) {
         $clone = clone $object;
         $clone->addData($row);
         $summary[$clone->getStoreId()][$clone->getEntityPkValue()] = $clone;
     }
     Mage::getResourceModel('review/review_summary')->reAggregate($summary);
     return $this;
 }
开发者ID:codercv,项目名称:urbansurprisedev,代码行数:20,代码来源:Rating.php

示例12: _afterDelete

 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     $condition = $this->_getWriteAdapter()->quoteInto('query_id = ?', $object->getId());
     $this->_getWriteAdapter()->delete($this->getTable('rocketweb_search/query_sku'), $condition);
     return parent::_afterDelete($object);
 }
开发者ID:beejhuff,项目名称:magento-kick-butt-search,代码行数:6,代码来源:Query.php

示例13: _afterDelete

 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     //delete values
     $this->_getReadAdapter()->delete($this->getTable('webforms/results_values'), 'result_id = ' . $object->getId());
     $dir = Mage::getBaseDir('media') . DS . 'webforms' . DS . $object->getId();
     $this->rrmdir($dir);
     //clear messages
     $messages = Mage::getModel('webforms/message')->getCollection()->addFilter('result_id', $object->getId());
     foreach ($messages as $message) {
         $message->delete();
     }
     Mage::dispatchEvent('webforms_result_delete', array('result' => $object));
     return parent::_afterDelete($object);
 }
开发者ID:monarcmoso,项目名称:beta2,代码行数:14,代码来源:Results.php

示例14: _afterDelete

 /**
  * Process data after delete
  * Validate if this revision can be removed
  *
  * @param Mage_Core_Model_Abstract $object
  * @return Enterprise_Cms_Model_Mysql4_Page_Revision
  */
 protected function _afterDelete(Mage_Core_Model_Abstract $object)
 {
     $this->_aggregateVersionData((int) $object->getVersionId());
     return parent::_afterDelete($object);
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:12,代码来源:Revision.php


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