本文整理汇总了PHP中Magento\Backend\Block\Widget\Grid\Extended::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Extended::__construct方法的具体用法?PHP Extended::__construct怎么用?PHP Extended::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Backend\Block\Widget\Grid\Extended
的用法示例。
在下文中一共展示了Extended::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Framework\Registry $coreRegistry
* @param \Magento\User\Model\RoleFactory $roleFactory
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\Registry $coreRegistry, \Magento\User\Model\RoleFactory $roleFactory, array $data = [])
{
parent::__construct($context, $backendHelper, $data);
$this->_jsonEncoder = $jsonEncoder;
$this->_coreRegistry = $coreRegistry;
$this->_roleFactory = $roleFactory;
}
示例2: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Store\Model\WebsiteFactory $websiteFactory
* @param \Magento\Eav\Model\Resource\Entity\Attribute\Set\CollectionFactory $setsFactory
* @param \Magento\Catalog\Model\ProductFactory $productFactory
* @param \Magento\Catalog\Model\Product\Type $type
* @param \Magento\Catalog\Model\Product\Attribute\Source\Status $status
* @param \Magento\Catalog\Model\Product\Visibility $visibility
* @param \Magento\Framework\Module\Manager $moduleManager
* @param array $data
*
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Store\Model\WebsiteFactory $websiteFactory, \YourCompanyName\BackendGrid\Model\Resource\ModelName\Collection $collectionFactory, \Magento\Framework\Module\Manager $moduleManager, array $data = [])
{
$this->_collectionFactory = $collectionFactory;
$this->_websiteFactory = $websiteFactory;
$this->moduleManager = $moduleManager;
parent::__construct($context, $backendHelper, $data);
}
示例3: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $eavAttSetCollection
* @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $cpCollection
* @param \Magento\Catalog\Model\Product\Type $catalogType
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $eavAttSetCollection, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $cpCollection, \Magento\Catalog\Model\Product\Type $catalogType, array $data = [])
{
$this->_catalogType = $catalogType;
$this->_cpCollection = $cpCollection;
$this->_eavAttSetCollection = $eavAttSetCollection;
parent::__construct($context, $backendHelper, $data);
}
示例4: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Index\Model\Resource\Process\CollectionFactory $factory
* @param \Magento\Index\Model\Process $indexProcess
* @param \Magento\Index\Model\EventRepository $eventRepository
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Index\Model\Resource\Process\CollectionFactory $factory, \Magento\Index\Model\Process $indexProcess, \Magento\Index\Model\EventRepository $eventRepository, array $data = array())
{
parent::__construct($context, $backendHelper, $data);
$this->_eventRepository = $eventRepository;
$this->_indexProcess = $indexProcess;
$this->_collectionFactory = $factory;
}
示例5: __construct
/**
* Information constructor.
*
* @param \Dotdigitalgroup\Email\Model\Apiconnector\Test $test
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Dotdigitalgroup\Email\Helper\Data $helper
* @param array $data
*/
public function __construct(\Dotdigitalgroup\Email\Model\Apiconnector\Test $test, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\App\ProductMetadataFactory $productMetadata, array $data = [])
{
$this->productMetadata = $productMetadata->create();
$this->test = $test;
$this->data = $helper;
parent::__construct($context, $backendHelper, $data);
}
示例6: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory $collectionFactory
* @param \Magento\Sales\Helper\Reorder $salesReorder
* @param \Magento\Framework\Registry $coreRegistry
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory $collectionFactory, \Magento\Sales\Helper\Reorder $salesReorder, \Magento\Framework\Registry $coreRegistry, array $data = [])
{
$this->_coreRegistry = $coreRegistry;
$this->_salesReorder = $salesReorder;
$this->_collectionFactory = $collectionFactory;
parent::__construct($context, $backendHelper, $data);
}
示例7: __construct
/**
* constructor
*
* @param \Mageplaza\Blog\Model\ResourceModel\Post\CollectionFactory $postCollectionFactory
* @param \Magento\Framework\Registry $coreRegistry
* @param \Mageplaza\Blog\Model\PostFactory $postFactory
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param array $data
*/
public function __construct(\Mageplaza\Blog\Model\ResourceModel\Post\CollectionFactory $postCollectionFactory, \Magento\Framework\Registry $coreRegistry, \Mageplaza\Blog\Model\PostFactory $postFactory, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, array $data = [])
{
$this->postCollectionFactory = $postCollectionFactory;
$this->coreRegistry = $coreRegistry;
$this->postFactory = $postFactory;
parent::__construct($context, $backendHelper, $data);
}
示例8: __construct
/**
* @param TemplateContext $context
* @param BackendHelper $backendHelper
* @param CollectionFactory $collectionFactory
* @param Registry $coreRegistry
* @param BillingAgreementResource $billingAgreementResource
* @param array $data
*/
public function __construct(TemplateContext $context, BackendHelper $backendHelper, CollectionFactory $collectionFactory, Registry $coreRegistry, BillingAgreementResource $billingAgreementResource, array $data = [])
{
$this->coreRegistry = $coreRegistry;
$this->collectionFactory = $collectionFactory;
$this->billingAgreementResource = $billingAgreementResource;
parent::__construct($context, $backendHelper, $data);
}
示例9: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Framework\Module\Manager $moduleManager
* @param array $data
*
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(\Dotdigitalgroup\Email\Model\Adminhtml\Source\Contact\ImportedFactory $importedFactory, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Dotdigitalgroup\Email\Model\Resource\Wishlist\CollectionFactory $gridFactory, \Magento\Framework\Module\Manager $moduleManager, array $data = [])
{
$this->_importedFactory = $importedFactory;
$this->_wishlistFactory = $gridFactory;
$this->moduleManager = $moduleManager;
parent::__construct($context, $backendHelper, $data);
}
示例10: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Cms\Model\Page $cmsPage
* @param \Magento\Cms\Model\ResourceModel\Page\CollectionFactory $collectionFactory
* @param \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Cms\Model\Page $cmsPage, \Magento\Cms\Model\ResourceModel\Page\CollectionFactory $collectionFactory, \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder, array $data = [])
{
$this->_collectionFactory = $collectionFactory;
$this->_cmsPage = $cmsPage;
$this->pageLayoutBuilder = $pageLayoutBuilder;
parent::__construct($context, $backendHelper, $data);
}
示例11: __construct
/**
* [__construct description].
*
* @param \Magento\Backend\Block\Template\Context $context [description]
* @param \Magento\Backend\Helper\Data $backendHelper [description]
* @param \Magento\Framework\Data\Collection $dataCollection [description]
* @param \Magestore\Bannerslider\Helper\Data $bannersliderHelper [description]
* @param array $data [description]
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Data\CollectionFactory $collectionFactory, \Magento\Framework\DataObjectFactory $objectFactory, \Magestore\Bannerslider\Helper\Data $bannersliderHelper, array $data = [])
{
$this->_bannersliderHelper = $bannersliderHelper;
$this->_collectionFactory = $collectionFactory;
$this->_objectFactory = $objectFactory;
parent::__construct($context, $backendHelper, $data);
}
示例12: __construct
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Tuna\BannerSlider\Model\ResourceModel\Slider\CollectionFactory $sliderCollectionFactory, \Tuna\BannerSlider\Helper\Data $bannersliderHelper, \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder, array $data = [])
{
$this->_sliderCollectionFactory = $sliderCollectionFactory;
$this->_bannersliderHelper = $bannersliderHelper;
$this->pageLayoutBuilder = $pageLayoutBuilder;
parent::__construct($context, $backendHelper, $data);
}
示例13: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Authorization\Model\Resource\Role\CollectionFactory $userRolesFactory
* @param \Magento\Framework\Registry $coreRegistry
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Authorization\Model\Resource\Role\CollectionFactory $userRolesFactory, \Magento\Framework\Registry $coreRegistry, array $data = array())
{
$this->_jsonEncoder = $jsonEncoder;
$this->_userRolesFactory = $userRolesFactory;
$this->_coreRegistry = $coreRegistry;
parent::__construct($context, $backendHelper, $data);
}
示例14: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Reports\Model\Resource\Report\Collection\Factory $resourceFactory
* @param \Magento\Reports\Model\Grouped\CollectionFactory $collectionFactory
* @param \Magento\Reports\Helper\Data $reportsData
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Reports\Model\Resource\Report\Collection\Factory $resourceFactory, \Magento\Reports\Model\Grouped\CollectionFactory $collectionFactory, \Magento\Reports\Helper\Data $reportsData, array $data = array())
{
$this->_resourceFactory = $resourceFactory;
$this->_collectionFactory = $collectionFactory;
$this->_reportsData = $reportsData;
parent::__construct($context, $backendHelper, $data);
}
示例15: __construct
/**
* Constructor
*
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Helper\Data $backendHelper
* @param \Magento\Sales\Model\QuoteFactory $quoteFactory
* @param \Magento\Framework\Data\CollectionFactory $dataCollectionFactory
* @param \Magento\Framework\Registry $coreRegistry
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Sales\Model\QuoteFactory $quoteFactory, \Magento\Framework\Data\CollectionFactory $dataCollectionFactory, \Magento\Framework\Registry $coreRegistry, array $data = [])
{
$this->_dataCollectionFactory = $dataCollectionFactory;
$this->_coreRegistry = $coreRegistry;
$this->_quoteFactory = $quoteFactory;
parent::__construct($context, $backendHelper, $data);
}