本文整理匯總了PHP中Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP AbstractRenderer::__construct方法的具體用法?PHP AbstractRenderer::__construct怎麽用?PHP AbstractRenderer::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
的用法示例。
在下文中一共展示了AbstractRenderer::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Framework\Filesystem $filesystem
* @param \Magento\Framework\Filesystem\Directory\ReadFactory $directoryRead
* @param \Magento\Framework\Stdlib\DateTime\DateTime $coreDate
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\Filesystem\Directory\ReadFactory $directoryRead, \Magento\Framework\Stdlib\DateTime\DateTime $coreDate, array $data = [])
{
parent::__construct($context, $data);
$this->_ioRead = $filesystem->getDirectoryWrite(\Magento\Framework\App\Filesystem\DirectoryList::ROOT);
$this->_coreDate = $coreDate;
$this->_directoryRead = $directoryRead->create("");
}
示例2: __construct
/**
* constructor
*
* @param Settings $settings
* @param Filesystem $filesystem
* @param Decoder $decoder
* @param Downloader $downloader
* @param Context $context
* @param array $data
*/
public function __construct(Settings $settings, Filesystem $filesystem, Decoder $decoder, Downloader $downloader, Context $context, array $data = [])
{
$this->settings = $settings;
$this->filesystem = $filesystem;
$this->decoder = $decoder;
$this->downloader = $downloader;
parent::__construct($context, $data);
}
示例3: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Framework\StoreManagerInterface $storeManager
* @param \Magento\Directory\Model\Currency\DefaultLocator $currencyLocator
* @param \Magento\Directory\Model\CurrencyFactory $currencyFactory
* @param \Magento\Framework\Locale\CurrencyInterface $localeCurrency
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\StoreManagerInterface $storeManager, \Magento\Directory\Model\Currency\DefaultLocator $currencyLocator, \Magento\Directory\Model\CurrencyFactory $currencyFactory, \Magento\Framework\Locale\CurrencyInterface $localeCurrency, array $data = array())
{
parent::__construct($context, $data);
$this->_storeManager = $storeManager;
$this->_currencyLocator = $currencyLocator;
$this->_localeCurrency = $localeCurrency;
$defaultBaseCurrencyCode = $this->_scopeConfig->getValue(\Magento\Directory\Model\Currency::XML_PATH_CURRENCY_BASE, 'default');
$this->_defaultBaseCurrency = $currencyFactory->create()->load($defaultBaseCurrencyCode);
}
示例4: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Backend\Block\Widget\Grid\Column\Renderer\Options\Converter $converter
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Backend\Block\Widget\Grid\Column\Renderer\Options\Converter $converter, array $data = array())
{
parent::__construct($context, $data);
$this->_converter = $converter;
}
示例5: __construct
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManagerInterface, $data = [])
{
$this->storeManger = $storeManagerInterface;
parent::__construct($context, $data);
}
示例6: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Framework\Stdlib\String $string
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Stdlib\String $string, array $data = [])
{
$this->string = $string;
parent::__construct($context, $data);
}
示例7: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param DateTimeFormatterInterface $dateTimeFormatter
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, DateTimeFormatterInterface $dateTimeFormatter, array $data = [])
{
parent::__construct($context, $data);
$this->dateTimeFormatter = $dateTimeFormatter;
}
示例8: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Framework\Locale\ListsInterface $localeLists
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Locale\ListsInterface $localeLists, array $data = [])
{
parent::__construct($context, $data);
$this->localeLists = $localeLists;
}
示例9: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Sitemap\Model\SitemapFactory $sitemapFactory
* @param \Magento\Framework\Filesystem $filesystem
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Sitemap\Model\SitemapFactory $sitemapFactory, \Magento\Framework\Filesystem $filesystem, array $data = [])
{
$this->_sitemapFactory = $sitemapFactory;
$this->_filesystem = $filesystem;
parent::__construct($context, $data);
}
示例10: __construct
public function __construct(\Magento\Backend\Block\Context $context, \Foggyline\Helpdesk\Model\TicketFactory $ticketFactory, array $data = [])
{
parent::__construct($context, $data);
$this->ticketFactory = $ticketFactory;
}
示例11: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param \Wyomind\SimpleGoogleShopping\Helper\Data $sgsHelper
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Wyomind\SimpleGoogleShopping\Helper\Data $sgsHelper, array $data = [])
{
parent::__construct($context, $data);
$this->_sgsHelper = $sgsHelper;
}
示例12: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, array $data = [])
{
parent::__construct($context, $data);
}
示例13: __construct
/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Core\Helper\Data $coreHelper
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Core\Helper\Data $coreHelper, array $data = array())
{
$this->_coreHelper = $coreHelper;
parent::__construct($context, $data);
}
示例14: __construct
public function __construct(\Magento\Backend\Block\Context $context, \Devopensource\Tickets\Model\TicketFactory $ticketFactory, array $data = [])
{
parent::__construct($context, $data);
$this->ticketFactory = $ticketFactory;
}
示例15: __construct
/**
* Constructor
*
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Catalog\Helper\Product\Configuration $productConfig
* @param \Magento\Catalog\Helper\Product\ConfigurationPool $productConfigPool
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Context $context, \Magento\Catalog\Helper\Product\Configuration $productConfig, \Magento\Catalog\Helper\Product\ConfigurationPool $productConfigPool, array $data = [])
{
$this->_productConfigPool = $productConfigPool;
$this->_productConfig = $productConfig;
parent::__construct($context, $data);
}