예제 #1
0
파일: Specific.php 프로젝트: ppkowalski/M2E
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->categoryTemplateModel = NULL);
     $temp && ($this->categorySpecificSourceModels = array());
     return $temp;
 }
예제 #2
0
파일: Service.php 프로젝트: ppkowalski/M2E
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->shippingTemplateModel = NULL);
     $temp && ($this->shippingServiceSourceModels = array());
     return $temp;
 }
예제 #3
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->descriptionTemplateModel = NULL);
     $temp && ($this->descriptionDefinitionSourceModels = array());
     return $temp;
 }
예제 #4
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->newProductTemplateModel = NULL);
     $temp && ($this->newProductAttributeSourceModels = array());
     return $temp;
 }
예제 #5
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->categoryTemplateModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
예제 #6
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->accountModel = NULL);
     $temp && ($this->marketplaceModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
예제 #7
0
 public function deleteInstance()
 {
     $items = $this->getRelatedSimpleItems('Ebay_Listing_Auto_Category', 'group_id', true);
     foreach ($items as $item) {
         $item->deleteInstance();
     }
     return parent::deleteInstance();
 }
예제 #8
0
 public function deleteInstance()
 {
     if ($this->isLocked()) {
         return false;
     }
     $temp = parent::deleteInstance();
     $temp && ($this->newProductTemplateModel = NULL);
     $temp && ($this->newProductCoreSourceModels = array());
     return $temp;
 }
예제 #9
0
 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
0
 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
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->accountModel = NULL);
     return $temp;
 }
예제 #12
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->generalTemplateModel = NULL);
     return $temp;
 }