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


PHP Field::__construct方法代码示例

本文整理汇总了PHP中Magento\Config\Block\System\Config\Form\Field::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Field::__construct方法的具体用法?PHP Field::__construct怎么用?PHP Field::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Magento\Config\Block\System\Config\Form\Field的用法示例。


在下文中一共展示了Field::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Connect constructor.
  *
  * @param \Dotdigitalgroup\Email\Helper\Data      $helper
  * @param \Dotdigitalgroup\Email\Helper\Config    $configHelper
  * @param \Magento\Backend\Model\Auth             $auth
  * @param \Magento\Backend\Block\Template\Context $context
  * @param array                                   $data
  */
 public function __construct(\Dotdigitalgroup\Email\Helper\Data $helper, \Dotdigitalgroup\Email\Helper\Config $configHelper, \Magento\Backend\Model\Auth $auth, \Magento\Backend\Block\Template\Context $context, $data = [])
 {
     $this->helper = $helper;
     $this->configHelper = $configHelper;
     $this->auth = $auth;
     parent::__construct($context, $data);
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:16,代码来源:Connect.php

示例2: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Model\Url $url
  * @param \Magento\Framework\View\Helper\Js $jsHelper
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Model\Url $url, \Magento\Framework\View\Helper\Js $jsHelper, \Magento\Directory\Helper\Data $directoryHelper, array $data = [])
 {
     parent::__construct($context, $data);
     $this->_url = $url;
     $this->_jsHelper = $jsHelper;
     $this->directoryHelper = $directoryHelper;
 }
开发者ID:IlyaGluschenko,项目名称:protection,代码行数:14,代码来源:Country.php

示例3: __construct

 /**
  * Construct.
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\ObjectManagerInterface $objectManagerInterface, $data = [])
 {
     $this->_objectManager = $objectManagerInterface;
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add New Condition');
     parent::__construct($context, $data);
 }
开发者ID:ThomasNegeli,项目名称:dotmailer-magento2-extension,代码行数:10,代码来源:Customdatafields.php

示例4: __construct

 /**
  * @param \Tobai\GeoIp2\Model\Database\Config $config
  * @param \Tobai\GeoIp2\Model\Database $database
  * @param \Tobai\GeoIp2\Model\System\Config\Source\AvailableDb $availableDb
  * @param \Magento\Backend\Block\Template\Context $context
  * @param array $data
  */
 public function __construct(Model\Database\Config $config, Model\Database $database, Model\System\Config\Source\AvailableDb $availableDb, Context $context, array $data = [])
 {
     $this->config = $config;
     $this->database = $database;
     $this->availableDb = $availableDb;
     parent::__construct($context, $data);
 }
开发者ID:ytorbyk,项目名称:magento2-geo-ip2,代码行数:14,代码来源:Status.php

示例5: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Smart2Pay\GlobalPay\Model\MethodFactory $methodFactory, \Smart2Pay\GlobalPay\Model\CountryMethodFactory $countryMethodFactory, \Smart2Pay\GlobalPay\Model\ConfiguredMethodsFactory $configuredMethodsFactory, \Smart2Pay\GlobalPay\Helper\Smart2Pay $helperSmart2Pay, array $data = [])
 {
     $this->_methodFactory = $methodFactory;
     $this->_countryMethodFactory = $countryMethodFactory;
     $this->_configuredMethodsFactory = $configuredMethodsFactory;
     $this->_helper = $helperSmart2Pay;
     parent::__construct($context, $data);
 }
开发者ID:smart2pay,项目名称:magento20,代码行数:12,代码来源:ConfiguredMethods.php

示例6: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, array $data = [])
 {
     $this->_urlBuilder = $context->getUrlBuilder();
     parent::__construct($context, $data);
 }
开发者ID:dragonsword007008,项目名称:magento2,代码行数:9,代码来源:TestButton.php

示例7: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Module\ModuleListInterface $moduleList
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Module\ModuleListInterface $moduleList, array $data = [])
 {
     parent::__construct($context, $data);
     $this->_moduleList = $moduleList;
 }
开发者ID:magepal,项目名称:magento2-gmailsmtpapp,代码行数:10,代码来源:Version.php

示例8: __construct

 public function __construct(\Magento\Backend\Block\Template\Context $context, array $data = [])
 {
     parent::__construct($context, $data);
 }
开发者ID:mageplaza,项目名称:magento-2-blog-extension,代码行数:4,代码来源:Head.php

示例9: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Directory\Helper\Data $directoryHelper, array $data = [])
 {
     $this->_directoryHelper = $directoryHelper;
     parent::__construct($context, $data);
 }
开发者ID:tingyeeh,项目名称:magento2,代码行数:10,代码来源:Updater.php

示例10: __construct

 /**
  * Version constructor.
  * @param \Magento\Framework\Module\ModuleListInterface $moduleList
  * @param \Magento\Backend\Block\Template\Context $context
  * @param array $data
  */
 public function __construct(\Adyen\Payment\Helper\Data $adyenHelper, \Magento\Backend\Block\Template\Context $context, array $data = [])
 {
     parent::__construct($context, $data);
     $this->_adyenHelper = $adyenHelper;
 }
开发者ID:Adyen,项目名称:adyen-magento2,代码行数:11,代码来源:Version.php

示例11: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\MediaStorage\Model\File\Storage $fileStorage
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\MediaStorage\Model\File\Storage $fileStorage, array $data = [])
 {
     $this->_fileStorage = $fileStorage;
     parent::__construct($context, $data);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:10,代码来源:Synchronize.php

示例12: __construct

 /**
  * Editor constructor.
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Cms\Model\Wysiwyg\Config $wysiwygConfig
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Cms\Model\Wysiwyg\Config $wysiwygConfig, array $data = [])
 {
     $this->_wysiwygConfig = $wysiwygConfig;
     parent::__construct($context, $data);
 }
开发者ID:clkweb,项目名称:popup,代码行数:11,代码来源:Editor.php

示例13: __construct

 public function __construct(Context $context, ConnectionStatus $status)
 {
     $this->status = $status;
     parent::__construct($context);
 }
开发者ID:tinify,项目名称:magento2-plugin,代码行数:5,代码来源:ConnectionStatusField.php

示例14: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \MagePsycho\Customshipping\Helper\Data $helper
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \MagePsycho\Customshipping\Helper\Data $helper)
 {
     $this->_helper = $helper;
     parent::__construct($context);
 }
开发者ID:MagePsycho,项目名称:magento2-custom-shipping,代码行数:9,代码来源:Version.php

示例15: __construct

 /**
  * @param Context $context
  * @param Model\Carrier $carrierDhl
  * @param Helper\Carrier $carrierHelper
  * @param array $data
  */
 public function __construct(Context $context, Model\Carrier $carrierDhl, Helper\Carrier $carrierHelper, array $data = [])
 {
     $this->carrierDhl = $carrierDhl;
     $this->carrierHelper = $carrierHelper;
     parent::__construct($context, $data);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:12,代码来源:Unitofmeasure.php


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