本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例8: __construct
public function __construct(\Magento\Backend\Block\Template\Context $context, array $data = [])
{
parent::__construct($context, $data);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例13: __construct
public function __construct(Context $context, ConnectionStatus $status)
{
$this->status = $status;
parent::__construct($context);
}
示例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);
}
示例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);
}