コード例 #1
0
 /**
  * Constructor
  * Configures collection
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Newsletter\\Model\\Subscriber', 'Magento\\Newsletter\\Model\\ResourceModel\\Subscriber');
     $this->_queueLinkTable = $this->getTable('newsletter_queue_link');
     $this->_storeTable = $this->getTable('store');
     $this->_map['fields']['type'] = $this->getResource()->getConnection()->getCheckSql('main_table.customer_id = 0', 1, 2);
     $this->_map['fields']['website_id'] = 'store.website_id';
     $this->_map['fields']['group_id'] = 'store.group_id';
     $this->_map['fields']['store_id'] = 'main_table.store_id';
 }
コード例 #2
0
 /**
  * Define resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Widget\\Model\\Layout\\Update', 'Magento\\Widget\\Model\\ResourceModel\\Layout\\Update');
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Sales\\Model\\Order', 'Magento\\Sales\\Model\\ResourceModel\\Order');
 }
コード例 #4
0
 /**
  * @return void
  * @codeCoverageIgnore
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\CatalogRule\\Model\\Rule\\Product\\Price', 'Magento\\CatalogRule\\Model\\ResourceModel\\Rule\\Product\\Price');
 }
コード例 #5
0
 /**
  *  Define resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Variable\\Model\\Variable', 'Magento\\Variable\\Model\\ResourceModel\\Variable');
 }
コード例 #6
0
 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\SalesRule\\Model\\Coupon', 'Magento\\SalesRule\\Model\\ResourceModel\\Coupon');
 }