當前位置: 首頁>>代碼示例>>PHP>>正文


PHP AbstractRenderer::__construct方法代碼示例

本文整理匯總了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("");
 }
開發者ID:Doability,項目名稱:magento2dev,代碼行數:14,代碼來源:Status.php

示例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);
 }
開發者ID:nhc,項目名稱:Umc_Base,代碼行數:18,代碼來源:Download.php

示例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);
 }
開發者ID:pavelnovitsky,項目名稱:magento2,代碼行數:17,代碼來源:Currency.php

示例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;
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:10,代碼來源:Radio.php

示例5: __construct

 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManagerInterface, $data = [])
 {
     $this->storeManger = $storeManagerInterface;
     parent::__construct($context, $data);
 }
開發者ID:ThomasNegeli,項目名稱:dotmailer-magento2-extension,代碼行數:5,代碼來源:Website.php

示例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);
 }
開發者ID:shabbirvividads,項目名稱:magento2,代碼行數:10,代碼來源:Wrapline.php

示例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;
 }
開發者ID:whoople,項目名稱:magento2-testing,代碼行數:10,代碼來源:Date.php

示例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;
 }
開發者ID:pradeep-wagento,項目名稱:magento2,代碼行數:10,代碼來源:Country.php

示例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);
 }
開發者ID:pradeep-wagento,項目名稱:magento2,代碼行數:12,代碼來源:Link.php

示例10: __construct

 public function __construct(\Magento\Backend\Block\Context $context, \Foggyline\Helpdesk\Model\TicketFactory $ticketFactory, array $data = [])
 {
     parent::__construct($context, $data);
     $this->ticketFactory = $ticketFactory;
 }
開發者ID:ksz2013,項目名稱:B05032-Foggyline_Helpdesk,代碼行數:5,代碼來源:Severity.php

示例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;
 }
開發者ID:Doability,項目名稱:magento2dev,代碼行數:10,代碼來源:Link.php

示例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);
 }
開發者ID:shabbirvividads,項目名稱:magento2,代碼行數:8,代碼來源:Date.php

示例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);
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:10,代碼來源:Link.php

示例14: __construct

 public function __construct(\Magento\Backend\Block\Context $context, \Devopensource\Tickets\Model\TicketFactory $ticketFactory, array $data = [])
 {
     parent::__construct($context, $data);
     $this->ticketFactory = $ticketFactory;
 }
開發者ID:DevopensourceTeam,項目名稱:Devopensource_Tickets,代碼行數:5,代碼來源:Status.php

示例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);
 }
開發者ID:shabbirvividads,項目名稱:magento2,代碼行數:14,代碼來源:Item.php


注:本文中的Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。