public function delete() { $temp = parent::delete(); $temp && ($this->listingProductVariationModel = NULL); $temp && ($this->magentoProductModel = NULL); return $temp; }
public function delete() { $temp = parent::delete(); $temp && ($this->accountModel = NULL); $temp && ($this->marketplaceModel = NULL); $temp && ($this->magentoProductModel = NULL); return $temp; }
public function delete() { if ($this->isLocked()) { return false; } $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('template_sellingformat'); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $this->order = NULL; $this->deleteChildInstance(); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $options = $this->getOptions(true); foreach ($options as $option) { $option->delete(); } $this->listingProductModel = NULL; $this->deleteChildInstance(); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $variations = $this->getVariations(true); foreach ($variations as $variation) { $variation->delete(); } $tempLog = $this->activeRecordFactory->getObject('Listing\\Log'); $tempLog->setComponentMode($this->getComponentMode()); $tempLog->addProductMessage($this->getListingId(), $this->getProductId(), $this->getId(), \Ess\M2ePro\Helper\Data::INITIATOR_UNKNOWN, NULL, \Ess\M2ePro\Model\Listing\Log::ACTION_DELETE_PRODUCT_FROM_LISTING, 'Item was successfully Deleted', \Ess\M2ePro\Model\Log\AbstractLog::TYPE_NOTICE, \Ess\M2ePro\Model\Log\AbstractLog::PRIORITY_MEDIUM); $this->listingModel = NULL; $this->magentoProductModel = NULL; $this->deleteChildInstance(); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $otherListings = $this->getOtherListings(true); foreach ($otherListings as $otherListing) { $otherListing->delete(); } $orders = $this->getOrders(true); foreach ($orders as $order) { $order->delete(); } $this->deleteChildInstance(); $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('marketplace'); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $otherListings = $this->getOtherListings(true); foreach ($otherListings as $otherListing) { $otherListing->delete(); } if ($this->isComponentModeEbay() && $this->getChildObject()->isModeSandbox()) { $listings = $this->getRelatedComponentItems('Listing', 'account_id', true); foreach ($listings as $listing) { $listing->delete(); } } $orders = $this->getOrders(true); foreach ($orders as $order) { $order->delete(); } $this->deleteChildInstance(); $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('account'); return parent::delete(); }
public function delete() { $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('template_synchronization'); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $items = $this->getRelatedSimpleItems('Listing\\Auto\\Category', 'group_id', true); foreach ($items as $item) { $item->delete(); } $this->deleteChildInstance(); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $products = $this->getProducts(true); foreach ($products as $product) { $product->delete(); } $categoriesGroups = $this->getAutoCategoriesGroups(true); foreach ($categoriesGroups as $categoryGroup) { $categoryGroup->delete(); } $tempLog = $this->activeRecordFactory->getObject('Listing\\Log'); $tempLog->setComponentMode($this->getComponentMode()); $tempLog->addListingMessage($this->getId(), \Ess\M2ePro\Helper\Data::INITIATOR_UNKNOWN, NULL, \Ess\M2ePro\Model\Listing\Log::ACTION_DELETE_LISTING, 'Listing was successfully deleted', \Ess\M2ePro\Model\Log\AbstractLog::TYPE_NOTICE, \Ess\M2ePro\Model\Log\AbstractLog::PRIORITY_HIGH); $this->accountModel = NULL; $this->marketplaceModel = NULL; $this->deleteChildInstance(); $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('listing'); return parent::delete(); }