コード例 #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
ファイル: Item.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->accountModel = NULL);
     $temp && ($this->marketplaceModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
コード例 #4
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;
 }
コード例 #5
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();
 }
コード例 #6
0
ファイル: Calculated.php プロジェクト: Doability/magento2dev
 public function getCacheGroupTags()
 {
     return array_merge(parent::getCacheGroupTags(), ['template']);
 }
コード例 #7
0
ファイル: Service.php プロジェクト: Doability/magento2dev
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->paymentTemplateModel = NULL);
     return $temp;
 }
コード例 #8
0
ファイル: Category.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Listing\\Auto\\Category');
 }
コード例 #9
0
 public function __construct(\Ess\M2ePro\Model\ActiveRecord\Component\Parent\Factory $parentFactory, \Ess\M2ePro\Model\Factory $modelFactory, \Ess\M2ePro\Model\ActiveRecord\Factory $activeRecordFactory, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     $this->parentFactory = $parentFactory;
     parent::__construct($modelFactory, $activeRecordFactory, $helperFactory, $context, $registry, $resource, $resourceCollection, $data);
 }
コード例 #10
0
ファイル: State.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Ebay\\Account\\PickupStore\\State');
 }
コード例 #11
0
 protected function _getResource()
 {
     if (is_null($this->childMode)) {
         return parent::_getResource();
     }
     if (empty($this->_resourceName) && empty($this->_resource)) {
         throw new \Magento\Framework\Exception\LocalizedException(new \Magento\Framework\Phrase('The resource isn\'t set.'));
     }
     return $this->_resource ?: \Magento\Framework\App\ObjectManager::getInstance()->get($this->_resourceName)->setChildMode($this->childMode);
 }
コード例 #12
0
ファイル: PickupStore.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->_init('Ess\\M2ePro\\Model\\ResourceModel\\Ebay\\Listing\\Product\\PickupStore');
 }