本文整理汇总了PHP中Ess_M2ePro_Model_Component_Abstract::deleteInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Model_Component_Abstract::deleteInstance方法的具体用法?PHP Ess_M2ePro_Model_Component_Abstract::deleteInstance怎么用?PHP Ess_M2ePro_Model_Component_Abstract::deleteInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ess_M2ePro_Model_Component_Abstract
的用法示例。
在下文中一共展示了Ess_M2ePro_Model_Component_Abstract::deleteInstance方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: deleteInstance
public function deleteInstance()
{
$temp = parent::deleteInstance();
$temp && ($this->categoryTemplateModel = NULL);
$temp && ($this->categorySpecificSourceModels = array());
return $temp;
}
示例2: deleteInstance
public function deleteInstance()
{
$temp = parent::deleteInstance();
$temp && ($this->shippingTemplateModel = NULL);
$temp && ($this->shippingServiceSourceModels = array());
return $temp;
}
示例3: deleteInstance
public function deleteInstance()
{
$temp = parent::deleteInstance();
$temp && ($this->descriptionTemplateModel = NULL);
$temp && ($this->descriptionDefinitionSourceModels = array());
return $temp;
}
示例4: deleteInstance
public function deleteInstance()
{
$temp = parent::deleteInstance();
$temp && ($this->newProductTemplateModel = NULL);
$temp && ($this->newProductAttributeSourceModels = array());
return $temp;
}
示例5: deleteInstance
public function deleteInstance()
{
$temp = parent::deleteInstance();
$temp && ($this->categoryTemplateModel = NULL);
$temp && ($this->magentoProductModel = NULL);
return $temp;
}
示例6: deleteInstance
public function deleteInstance()
{
$temp = parent::deleteInstance();
$temp && ($this->accountModel = NULL);
$temp && ($this->marketplaceModel = NULL);
$temp && ($this->magentoProductModel = NULL);
return $temp;
}
示例7: deleteInstance
public function deleteInstance()
{
$items = $this->getRelatedSimpleItems('Ebay_Listing_Auto_Category', 'group_id', true);
foreach ($items as $item) {
$item->deleteInstance();
}
return parent::deleteInstance();
}
示例8: deleteInstance
public function deleteInstance()
{
if ($this->isLocked()) {
return false;
}
$temp = parent::deleteInstance();
$temp && ($this->newProductTemplateModel = NULL);
$temp && ($this->newProductCoreSourceModels = array());
return $temp;
}
示例9: deleteInstance
public function deleteInstance()
{
if (!parent::deleteInstance()) {
return false;
}
/** @var $connWrite Varien_Db_Adapter_Pdo_Mysql */
$connWrite = Mage::getSingleton('core/resource')->getConnection('core_write');
$coreResourceModel = Mage::getSingleton('core/resource');
$filterGroupRelation = $coreResourceModel->getTableName('m2epro_ebay_motor_filter_to_group');
$connWrite->delete($filterGroupRelation, array('group_id = ?' => $this->getId()));
return true;
}
示例10: deleteInstance
public function deleteInstance()
{
// Delete watermark if exists
// ----------------------------------
$varDir = new Ess_M2ePro_Model_General_VariablesDir(array('child_folder' => 'ebay/template/description/watermarks'));
$watermarkPath = $varDir->getPath() . $this->getId() . '.png';
if (is_file($watermarkPath)) {
@unlink($watermarkPath);
}
// ----------------------------------
$temp = parent::deleteInstance();
$temp && ($this->magentoProductModel = NULL);
return $temp;
}
示例11: deleteInstance
public function deleteInstance()
{
$temp = parent::deleteInstance();
$temp && ($this->accountModel = NULL);
return $temp;
}
示例12: deleteInstance
public function deleteInstance()
{
$temp = parent::deleteInstance();
$temp && ($this->generalTemplateModel = NULL);
return $temp;
}