コード例 #1
0
ファイル: Service.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->shippingTemplateModel = NULL);
     $temp && ($this->shippingServiceSourceModels = array());
     return $temp;
 }
コード例 #2
0
ファイル: Specific.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->categoryTemplateModel = NULL);
     $temp && ($this->categorySpecificSourceModels = array());
     return $temp;
 }
コード例 #3
0
ファイル: Calculated.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->shippingTemplateModel = NULL);
     $temp && ($this->shippingCalculatedSourceModels = array());
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('ebay_template_shipping_calculated');
     return $temp;
 }
コード例 #4
0
ファイル: Item.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->accountModel = NULL);
     $temp && ($this->marketplaceModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
コード例 #5
0
ファイル: Filter.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     if (!parent::delete()) {
         return false;
     }
     $connection = $this->getResource()->getConnection();
     $filterGroupRelation = $this->getResource()->getTable('m2epro_ebay_motor_filter_to_group');
     $connection->delete($filterGroupRelation, array('filter_id = ?' => $this->getId()));
     return true;
 }
コード例 #6
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $this->marketplaceModel = NULL;
     $this->accountModel = NULL;
     $this->otherCategorySourceModels = array();
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('ebay_template_othercategory');
     return parent::delete();
 }
コード例 #7
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $services = $this->getServices(true);
     foreach ($services as $service) {
         $service->delete();
     }
     $this->marketplaceModel = NULL;
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('amazon_template_shippingoverride');
     return parent::delete();
 }
コード例 #8
0
ファイル: PickupStore.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     if (is_null($this->getId())) {
         throw new \Ess\M2ePro\Model\Exception\Logic('Method require loaded instance first');
     }
     $connection = $this->getResource()->getConnection();
     $connection->delete($this->activeRecordFactory->getObject('Ebay\\Listing\\Product\\PickupStore')->getResource()->getMainTable(), array('account_pickup_store_id = ?' => $this->getId()));
     $connection->delete($this->activeRecordFactory->getObject('Ebay\\Account\\PickupStore\\State')->getResource()->getMainTable(), array('account_pickup_store_id = ?' => $this->getId()));
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('ebay_account_pickup_store');
     return parent::delete();
 }
コード例 #9
0
ファイル: Category.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $specifics = $this->getSpecifics(true);
     foreach ($specifics as $specific) {
         $specific->delete();
     }
     $this->marketplaceModel = NULL;
     $this->categorySourceModels = array();
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('ebay_template_category');
     return parent::delete();
 }
コード例 #10
0
ファイル: Service.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->paymentTemplateModel = NULL);
     return $temp;
 }
コード例 #11
0
ファイル: Shipping.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $calculatedShippingObject = $this->getCalculatedShipping();
     if (!is_null($calculatedShippingObject)) {
         $calculatedShippingObject->delete();
     }
     $services = $this->getServices(true);
     foreach ($services as $service) {
         $service->delete();
     }
     $this->marketplaceModel = NULL;
     $this->calculatedShippingModel = NULL;
     $this->shippingSourceModels = array();
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('ebay_template_shipping');
     return parent::delete();
 }
コード例 #12
0
ファイル: Definition.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->descriptionTemplateModel = NULL);
     $temp && ($this->descriptionDefinitionSourceModels = array());
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('template_description_definition');
     return $temp;
 }
コード例 #13
0
 public function delete()
 {
     if (is_null($this->getId())) {
         throw new \Ess\M2ePro\Model\Exception\Logic('Method require loaded instance first');
     }
     if ($this->isLocked()) {
         return false;
     }
     $this->deleteChildInstance();
     $temp = parent::delete();
     $this->childMode = NULL;
     $this->childObject = NULL;
     return $temp;
 }