本文整理汇总了PHP中Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractCollection::_construct方法的具体用法?PHP AbstractCollection::_construct怎么用?PHP AbstractCollection::_construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
的用法示例。
在下文中一共展示了AbstractCollection::_construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _construct
/**
* 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: _construct
/**
* 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: _construct
/**
* Define resource model
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\Widget\\Model\\Layout\\Update', 'Magento\\Widget\\Model\\ResourceModel\\Layout\\Update');
}
示例4: _construct
/**
* {@inheritdoc}
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\Sales\\Model\\Order', 'Magento\\Sales\\Model\\ResourceModel\\Order');
}
示例5: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\SalesRule\\Model\\Coupon', 'Magento\\SalesRule\\Model\\ResourceModel\\Coupon');
}
示例6: _construct
/**
* 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: _construct
/**
* Define resource model
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\Variable\\Model\\Variable', 'Magento\\Variable\\Model\\ResourceModel\\Variable');
}
示例8: _construct
/**
* @return void
* @codeCoverageIgnore
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\CatalogRule\\Model\\Rule\\Product\\Price', 'Magento\\CatalogRule\\Model\\ResourceModel\\Rule\\Product\\Price');
}
示例9: _construct
/**
* Constructor
* Configures collection
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magefan\\LoginAsCustomer\\Model\\Login', 'Magefan\\LoginAsCustomer\\Model\\ResourceModel\\Login');
}
示例10: _construct
protected function _construct()
{
$this->_init('ISM\\Blog\\Model\\Post', 'ISM\\Blog\\Model\\ResourceModel\\Post');
parent::_construct();
}