本文整理汇总了PHP中Magento\Framework\Model\AbstractModel::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractModel::_construct方法的具体用法?PHP AbstractModel::_construct怎么用?PHP AbstractModel::_construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Framework\Model\AbstractModel
的用法示例。
在下文中一共展示了AbstractModel::_construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _construct
/**
* Construct.
*/
public function _construct()
{
$this->defaultOptions = $this->rulesType->defaultOptions();
$this->conditionMap = ['eq' => 'neq', 'neq' => 'eq', 'gteq' => 'lteq', 'lteq' => 'gteq', 'gt' => 'lt', 'lt' => 'gt', 'like' => 'nlike', 'nlike' => 'like'];
$this->attributeMapForQuote = ['method' => 'method', 'shipping_method' => 'shipping_method', 'country_id' => 'country_id', 'city' => 'city', 'region_id' => 'region_id', 'customer_group_id' => 'main_table.customer_group_id', 'coupon_code' => 'main_table.coupon_code', 'subtotal' => 'main_table.subtotal', 'grand_total' => 'main_table.grand_total', 'items_qty' => 'main_table.items_qty', 'customer_email' => 'main_table.customer_email'];
$this->attributeMapForOrder = ['method' => 'method', 'shipping_method' => 'main_table.shipping_method', 'country_id' => 'country_id', 'city' => 'city', 'region_id' => 'region_id', 'customer_group_id' => 'main_table.customer_group_id', 'coupon_code' => 'main_table.coupon_code', 'subtotal' => 'main_table.subtotal', 'grand_total' => 'main_table.grand_total', 'items_qty' => 'items_qty', 'customer_email' => 'main_table.customer_email'];
parent::_construct();
$this->_init('Dotdigitalgroup\\Email\\Model\\ResourceModel\\Rules');
}
示例2: _construct
/**
* constructor
*/
public function _construct()
{
$this->_objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$this->_defaultOptions = $this->_objectManager->create('Dotdigitalgroup\\Email\\Model\\Adminhtml\\Source\\Rules\\Type')->defaultOptions();
$this->_conditionMap = array('eq' => 'neq', 'neq' => 'eq', 'gteq' => 'lteq', 'lteq' => 'gteq', 'gt' => 'lt', 'lt' => 'gt', 'like' => 'nlike', 'nlike' => 'like');
$this->_attributeMapForQuote = array('method' => 'method', 'shipping_method' => 'shipping_method', 'country_id' => 'country_id', 'city' => 'city', 'region_id' => 'region_id', 'customer_group_id' => 'main_table.customer_group_id', 'coupon_code' => 'main_table.coupon_code', 'subtotal' => 'main_table.subtotal', 'grand_total' => 'main_table.grand_total', 'items_qty' => 'main_table.items_qty', 'customer_email' => 'main_table.customer_email');
$this->_attributeMapForOrder = array('method' => 'method', 'shipping_method' => 'main_table.shipping_method', 'country_id' => 'country_id', 'city' => 'city', 'region_id' => 'region_id', 'customer_group_id' => 'main_table.customer_group_id', 'coupon_code' => 'main_table.coupon_code', 'subtotal' => 'main_table.subtotal', 'grand_total' => 'main_table.grand_total', 'items_qty' => 'items_qty', 'customer_email' => 'main_table.customer_email');
parent::_construct();
$this->_init('Dotdigitalgroup\\Email\\Model\\Resource\\Rules');
}
示例3: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Ebizmarts\\AbandonedCart\\Model\\ResourceModel\\Popup');
}
示例4: _construct
/**
* Resource model initialization.
*/
protected function _construct()
{
$this->_init('ISM\\Blog\\Model\\ResourceModel\\Post');
parent::_construct();
}
示例5: _construct
/**
* Initialize resource model
*
* @return void
*/
protected function _construct()
{
$this->_init('Magento\\Bundle\\Model\\Resource\\Selection');
parent::_construct();
}
示例6: _construct
/**
* @return void
*/
protected function _construct()
{
$this->_init('Magento\\Catalog\\Model\\Resource\\Product\\Option');
parent::_construct();
}
示例7: _construct
/**
* Define resource model
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\Log\\Model\\Resource\\Customer');
}
示例8: _construct
/**
* Initialize resource model
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\Newsletter\\Model\\ResourceModel\\Queue');
}
示例9: _construct
/**
* Enter description here...
*
* @return void
*/
protected function _construct()
{
$this->_init('Magento\\Downloadable\\Model\\ResourceModel\\Link\\Purchased');
parent::_construct();
}
示例10: _construct
/**
* Constructor.
*/
public function _construct()
{
parent::_construct();
$this->_init('Dotdigitalgroup\\Email\\Model\\ResourceModel\\Review');
}
示例11: _construct
/**
* Internal Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\Variable\\Model\\ResourceModel\\Variable');
}
示例12: _construct
/**
* Model construct that should be used for object initialization
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\GoogleOptimizer\\Model\\ResourceModel\\Code');
}
示例13: _construct
/**
* Internal Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_init('Magento\\Widget\\Model\\ResourceModel\\Widget\\Instance');
$this->_layoutHandles = ['anchor_categories' => self::ANCHOR_CATEGORY_LAYOUT_HANDLE, 'notanchor_categories' => self::NOTANCHOR_CATEGORY_LAYOUT_HANDLE, 'all_products' => self::PRODUCT_LAYOUT_HANDLE, 'all_pages' => self::DEFAULT_LAYOUT_HANDLE];
$this->_specificEntitiesLayoutHandles = ['anchor_categories' => self::SINGLE_CATEGORY_LAYOUT_HANDLE, 'notanchor_categories' => self::SINGLE_CATEGORY_LAYOUT_HANDLE, 'all_products' => self::SINGLE_PRODUCT_LAYOUT_HANLDE];
foreach (array_keys($this->_productType->getTypes()) as $typeId) {
$layoutHandle = str_replace('{{TYPE}}', $typeId, self::PRODUCT_TYPE_LAYOUT_HANDLE);
$this->_layoutHandles[$typeId . '_products'] = $layoutHandle;
$this->_specificEntitiesLayoutHandles[$typeId . '_products'] = self::SINGLE_PRODUCT_LAYOUT_HANLDE;
}
}
示例14: _construct
/**
* Initialize resource
*
* @return void
*/
protected function _construct()
{
$this->_init('Magento\\Downloadable\\Model\\Resource\\Sample');
parent::_construct();
}
示例15: _construct
/**
* Initialize resource model
*
* @return null
*/
protected function _construct()
{
$this->_init('Magento\\Paypal\\Model\\Resource\\Payment\\Transaction');
return parent::_construct();
}