コード例 #1
0
ファイル: Product.php プロジェクト: Doability/magento2dev
 /**
  * @return bool
  * @throws \Ess\M2ePro\Model\Exception
  * @throws \Ess\M2ePro\Model\Exception\Logic
  */
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     if ($this->getVariationManager()->isRelationParentType()) {
         foreach ($this->getVariationManager()->getTypeModel()->getChildListingsProducts() as $child) {
             /** @var $child \Ess\M2ePro\Model\Listing\Product */
             $child->delete();
         }
     }
     $this->variationManager = NULL;
     return parent::delete();
 }
コード例 #2
0
 public function delete()
 {
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('template_sellingformat');
     return parent::delete();
 }
コード例 #3
0
ファイル: Description.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $this->getDefinitionTemplate()->delete();
     foreach ($this->getSpecifics(true) as $specific) {
         $specific->delete();
     }
     $this->marketplaceModel = NULL;
     $this->descriptionDefinitionModel = NULL;
     $this->descriptionSourceModels = array();
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('amazon_template_description');
     return parent::delete();
 }
コード例 #4
0
ファイル: Marketplace.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('marketplace');
     return parent::delete();
 }
コード例 #5
0
ファイル: Account.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $items = $this->getAmazonItems(true);
     foreach ($items as $item) {
         $item->delete();
     }
     // TODO NOT SUPPORTED FEATURE repricing
     //        if ($this->isRepricing()) {
     //            $this->getRepricing()->delete();
     //        }
     $this->marketplaceModel = NULL;
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('account');
     return parent::delete();
 }
コード例 #6
0
ファイル: Listing.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('listing');
     $temp = parent::delete();
     $temp && ($this->sellingFormatTemplateModel = NULL);
     $temp && ($this->synchronizationTemplateModel = NULL);
     return $temp;
 }