本文整理汇总了PHP中Magento\Backend\Block\Widget\Form\Generic::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Generic::__construct方法的具体用法?PHP Generic::__construct怎么用?PHP Generic::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Backend\Block\Widget\Form\Generic
的用法示例。
在下文中一共展示了Generic::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Theme\Model\Config\Customization $customizationConfig
* @param \Magento\DesignEditor\Model\Theme\Context $themeContext
* @param \Magento\Core\Helper\Data $coreHelper
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Theme\Model\Config\Customization $customizationConfig, \Magento\DesignEditor\Model\Theme\Context $themeContext, \Magento\Core\Helper\Data $coreHelper, array $data = array())
{
$this->_coreHelper = $coreHelper;
parent::__construct($context, $registry, $formFactory, $data);
$this->_customizationConfig = $customizationConfig;
$this->_themeContext = $themeContext;
}
示例2: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Catalog\Model\ResourceModel\Category\Collection $categoryCollection
* @param \Magento\Framework\View\LayoutFactory $layoutFactory
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Framework\DB\Helper $resourceHelper
* @param \Magento\Framework\App\Filesystem\DirectoryList $directoryList
* @param \Wyomind\Core\Helper\Data $coreHelper
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\App\Filesystem\DirectoryList $directoryList, \Wyomind\Core\Helper\Data $coreHelper, \Magento\Framework\ObjectManagerInterface $objectManager, array $data = [])
{
$this->_directoryList = $directoryList;
$this->_coreHelper = $coreHelper;
$this->_objectManager = $objectManager;
parent::__construct($context, $registry, $formFactory, $data);
}
示例3: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Cms\Model\Wysiwyg\Config $wysiwygConfig
* @param \Magento\Store\Model\System\Store $systemStore
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Store\Model\System\Store $systemStore, \Alin\Cadou\Model\Cadou\Source\ProductSelect $productSelect, \Magento\Store\Model\ResourceModel\Store\Collection $storeSelect, array $data = [])
{
$this->_systemStore = $systemStore;
$this->_productSelect = $productSelect;
$this->_storeSelect = $storeSelect;
parent::__construct($context, $registry, $formFactory, $data);
}
示例4: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Tax\Model\TaxClass\Source\Customer $taxCustomer
* @param \Magento\Customer\Service\V1\CustomerGroupServiceInterface $groupService
* @param \Magento\Customer\Service\V1\Data\CustomerGroupBuilder $groupBuilder
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Tax\Model\TaxClass\Source\Customer $taxCustomer, \Magento\Customer\Service\V1\CustomerGroupServiceInterface $groupService, \Magento\Customer\Service\V1\Data\CustomerGroupBuilder $groupBuilder, array $data = array())
{
$this->_taxCustomer = $taxCustomer;
$this->_groupService = $groupService;
$this->_groupBuilder = $groupBuilder;
parent::__construct($context, $registry, $formFactory, $data);
}
示例5: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Customer\Service\V1\CustomerGroupServiceInterface $customerGroup
* @param \Magento\Framework\Convert\Object $objectConverter
* @param \Magento\Store\Model\System\Store $systemStore
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Customer\Service\V1\CustomerGroupServiceInterface $customerGroup, \Magento\Framework\Convert\Object $objectConverter, \Magento\Store\Model\System\Store $systemStore, array $data = array())
{
$this->_systemStore = $systemStore;
$this->_customerGroup = $customerGroup;
$this->_objectConverter = $objectConverter;
parent::__construct($context, $registry, $formFactory, $data);
}
示例6: __construct
/**
* Constructor
*
* @param Context $context
* @param Registry $registry
* @param FormFactory $formFactory
* @param SystemStore $systemStore
* @param Config $config
*/
public function __construct(Context $context, Registry $registry, FormFactory $formFactory, SystemStore $systemStore, Config $config)
{
$this->systemStore = $systemStore;
$this->storeManager = $context->getStoreManager();
$this->config = $config;
return parent::__construct($context, $registry, $formFactory);
}
示例7: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\ProductVideo\Helper\Media $mediaHelper
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\ProductVideo\Helper\Media $mediaHelper, array $data = [])
{
parent::__construct($context, $registry, $formFactory, $data);
$this->mediaHelper = $mediaHelper;
$this->jsonEncoder = $jsonEncoder;
$this->setUseContainer(true);
}
示例8: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Newsletter\Model\QueueFactory $queueFactory
* @param \Magento\Store\Model\System\Store $systemStore
* @param \Magento\Cms\Model\Wysiwyg\Config $wysiwygConfig
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Newsletter\Model\QueueFactory $queueFactory, \Magento\Store\Model\System\Store $systemStore, \Magento\Cms\Model\Wysiwyg\Config $wysiwygConfig, array $data = [])
{
$this->_wysiwygConfig = $wysiwygConfig;
$this->_systemStore = $systemStore;
$this->_queueFactory = $queueFactory;
parent::__construct($context, $registry, $formFactory, $data);
}
示例9: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Eav\Model\Config $eavConfig
* @param \Magento\DesignEditor\Model\Editor\Tools\Controls\Factory $controlFactory
* @param \Magento\DesignEditor\Model\Theme\Context $themeContext
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Eav\Model\Config $eavConfig, \Magento\DesignEditor\Model\Editor\Tools\Controls\Factory $controlFactory, \Magento\DesignEditor\Model\Theme\Context $themeContext, array $data = [])
{
parent::__construct($context, $registry, $formFactory, $data);
$this->_eavConfig = $eavConfig;
$this->_controlFactory = $controlFactory;
$this->_themeContext = $themeContext;
}
示例10: __construct
public function __construct(Context $context, Registry $registry, FormFactory $formFactory, Config $wysiwygConfig, Store $systemStore, SlidersFactory $slidersFactory, array $data = [])
{
$this->_sliderFactory = $slidersFactory;
$this->_systemStore = $systemStore;
$this->_wysiwygConfig = $wysiwygConfig;
parent::__construct($context, $registry, $formFactory, $data);
}
示例11: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param Yesno $yesNo
* @param Data $eavData
* @param array $disableScopeChangeList
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, Yesno $yesNo, Data $eavData, array $disableScopeChangeList = ['sku'], array $data = [])
{
$this->_yesNo = $yesNo;
$this->_eavData = $eavData;
$this->disableScopeChangeList = $disableScopeChangeList;
parent::__construct($context, $registry, $formFactory, $data);
}
示例12: __construct
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \TanDinh\Banner\Model\Banners $bannerModel, array $data = [])
{
$this->_coreRegistry = $registry;
$this->_formFactory = $formFactory;
$this->_bannerModel = $bannerModel;
parent::__construct($context, $registry, $formFactory, $data);
}
示例13: __construct
/**
* @param Context $context
* @param Registry $registry
* @param FormFactory $formFactory
* @param Config $wysiwygConfig
* @param array $data
*/
public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, Context $context, Registry $registry, FormFactory $formFactory, Config $wysiwygConfig, Status $manufacturerStatus, array $data = [])
{
$this->_wysiwygConfig = $wysiwygConfig;
$this->_manufacturerStatus = $manufacturerStatus;
parent::__construct($context, $registry, $formFactory, $data);
$this->objectManager = $objectManager;
}
示例14: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Theme\Model\Layout\Source\Layout $pageLayout
* @param \Magento\Framework\View\Design\Theme\LabelFactory $labelFactory
* @param \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Theme\Model\Layout\Source\Layout $pageLayout, \Magento\Framework\View\Design\Theme\LabelFactory $labelFactory, \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder, array $data = [])
{
$this->pageLayoutBuilder = $pageLayoutBuilder;
$this->_labelFactory = $labelFactory;
$this->_pageLayout = $pageLayout;
parent::__construct($context, $registry, $formFactory, $data);
}
示例15: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Data\FormFactory $formFactory
* @param \Magento\Framework\DataObject $objectFactory
* @param \Magebase\Carousel\Model\Banner $banner
* @param \Magebase\Carousel\Model\Slider $slider
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\DataObject $objectFactory, \Magebase\Carousel\Model\Banner $banner, \Magebase\Carousel\Model\Slider $slider, array $data = [])
{
$this->_objectFactory = $objectFactory;
$this->_banner = $banner;
$this->_sliderFactory = $slider;
parent::__construct($context, $registry, $formFactory, $data);
}