コード例 #1
0
 /**
  * Constructor
  * Configures collection
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magefan\\Blog\\Model\\Category', 'Magefan\\Blog\\Model\\ResourceModel\\Category');
     $this->_map['fields']['category_id'] = 'main_table.category_id';
     $this->_map['fields']['store'] = 'store_table.store_id';
 }
コード例 #2
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';
 }
コード例 #3
0
 /**
  * Define resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Widget\\Model\\Layout\\Update', 'Magento\\Widget\\Model\\ResourceModel\\Layout\\Update');
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Sales\\Model\\Order', 'Magento\\Sales\\Model\\ResourceModel\\Order');
 }
コード例 #5
0
 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\SalesRule\\Model\\Coupon', 'Magento\\SalesRule\\Model\\ResourceModel\\Coupon');
 }
コード例 #6
0
ファイル: Slider.php プロジェクト: jzet82/magento2
 /**
  * Init collection by setting model and resource model classes
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Revolve\\RevoSlider\\Model\\Slider', 'Revolve\\RevoSlider\\Model\\ResourceModel\\Slider');
 }
コード例 #7
0
 /**
  *  Define resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Variable\\Model\\Variable', 'Magento\\Variable\\Model\\ResourceModel\\Variable');
 }
コード例 #8
0
 /**
  * @return void
  * @codeCoverageIgnore
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\CatalogRule\\Model\\Rule\\Product\\Price', 'Magento\\CatalogRule\\Model\\ResourceModel\\Rule\\Product\\Price');
 }
コード例 #9
0
ファイル: Collection.php プロジェクト: razbakov/magento2
 /**
  * Define resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\Widget\Model\Layout\Link', 'Magento\Widget\Model\ResourceModel\Layout\Link');
 }
コード例 #10
0
 /**
  * Init collection by setting model and resource model classes
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('MeetMagentoPL\\AdminGridStarterKit\\Model\\Recipe', 'MeetMagentoPL\\AdminGridStarterKit\\Model\\ResourceModel\\Recipe');
 }
コード例 #11
0
 /**
  * Constructor
  * Configures collection
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magefan\\LoginAsCustomer\\Model\\Login', 'Magefan\\LoginAsCustomer\\Model\\ResourceModel\\Login');
 }
コード例 #12
0
 /**
  *  Define resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('ShipperHQ\\Shipper\\Model\\Synchronize', 'ShipperHQ\\Shipper\\Model\\ResourceModel\\Synchronize');
 }
コード例 #13
0
 /**
  *  Define resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('ShipperHQ\\Logger\\Model\\Log', 'ShipperHQ\\Logger\\Model\\ResourceModel\\Log');
 }
コード例 #14
0
ファイル: Collection.php プロジェクト: swnsma/practice
 protected function _construct()
 {
     $this->_init('ISM\\Blog\\Model\\Post', 'ISM\\Blog\\Model\\ResourceModel\\Post');
     parent::_construct();
 }
コード例 #15
0
ファイル: Collection.php プロジェクト: magefan/module-blog
 /**
  * Constructor
  * Configures collection
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magefan\\Blog\\Model\\Author', 'Magefan\\Blog\\Model\\ResourceModel\\Author');
 }