当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractModel::_construct方法代码示例

本文整理汇总了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');
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:12,代码来源:Rules.php

示例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');
 }
开发者ID:ThomasNegeli,项目名称:dotmailer-magento2-extension,代码行数:13,代码来源:Rules.php

示例3: _construct

 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Ebizmarts\\AbandonedCart\\Model\\ResourceModel\\Popup');
 }
开发者ID:ebizmarts,项目名称:magento2-abandonedcart,代码行数:10,代码来源:Popup.php

示例4: _construct

 /**
  * Resource model initialization.
  */
 protected function _construct()
 {
     $this->_init('ISM\\Blog\\Model\\ResourceModel\\Post');
     parent::_construct();
 }
开发者ID:swnsma,项目名称:practice,代码行数:8,代码来源:Post.php

示例5: _construct

 /**
  * Initialize resource model
  *
  * @return void
  */
 protected function _construct()
 {
     $this->_init('Magento\\Bundle\\Model\\Resource\\Selection');
     parent::_construct();
 }
开发者ID:opexsw,项目名称:magento2,代码行数:10,代码来源:Selection.php

示例6: _construct

 /**
  * @return void
  */
 protected function _construct()
 {
     $this->_init('Magento\\Catalog\\Model\\Resource\\Product\\Option');
     parent::_construct();
 }
开发者ID:aiesh,项目名称:magento2,代码行数:8,代码来源:Option.php

示例7: _construct

 /**
  * Define resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Log\\Model\\Resource\\Customer');
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:10,代码来源:Customer.php

示例8: _construct

 /**
  * Initialize resource model
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Newsletter\\Model\\ResourceModel\\Queue');
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:10,代码来源:Queue.php

示例9: _construct

 /**
  * Enter description here...
  *
  * @return void
  */
 protected function _construct()
 {
     $this->_init('Magento\\Downloadable\\Model\\ResourceModel\\Link\\Purchased');
     parent::_construct();
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:10,代码来源:Purchased.php

示例10: _construct

 /**
  * Constructor.
  */
 public function _construct()
 {
     parent::_construct();
     $this->_init('Dotdigitalgroup\\Email\\Model\\ResourceModel\\Review');
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:8,代码来源:Review.php

示例11: _construct

 /**
  * Internal Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_init('Magento\\Variable\\Model\\ResourceModel\\Variable');
 }
开发者ID:tingyeeh,项目名称:magento2,代码行数:10,代码来源:Variable.php

示例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');
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:9,代码来源:Code.php

示例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;
     }
 }
开发者ID:whoople,项目名称:magento2-testing,代码行数:17,代码来源:Instance.php

示例14: _construct

 /**
  * Initialize resource
  *
  * @return void
  */
 protected function _construct()
 {
     $this->_init('Magento\\Downloadable\\Model\\Resource\\Sample');
     parent::_construct();
 }
开发者ID:aiesh,项目名称:magento2,代码行数:10,代码来源:Sample.php

示例15: _construct

 /**
  * Initialize resource model
  *
  * @return null
  */
 protected function _construct()
 {
     $this->_init('Magento\\Paypal\\Model\\Resource\\Payment\\Transaction');
     return parent::_construct();
 }
开发者ID:aiesh,项目名称:magento2,代码行数:10,代码来源:Transaction.php


注:本文中的Magento\Framework\Model\AbstractModel::_construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。