예제 #1
0
파일: File.php 프로젝트: aiesh/magento2
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Backend\Helper\Data $adminhtmlData
  * @param \Magento\Framework\View\Asset\Repository $assetRepo
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Backend\Helper\Data $adminhtmlData, \Magento\Framework\View\Asset\Repository $assetRepo, $data = array())
 {
     $this->_adminhtmlData = $adminhtmlData;
     $this->_assetRepo = $assetRepo;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('file');
 }
예제 #2
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = array())
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('select');
     $this->setExtType('multiple');
     $this->setSize(10);
 }
예제 #3
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('select');
     $this->setExtType('combobox');
     $this->_prepareOptions();
 }
예제 #4
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = array())
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('textarea');
     $this->setExtType('textarea');
     $this->setRows(2);
     $this->setCols(15);
 }
예제 #5
0
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('file');
     $this->setExtType('imagefile');
     $this->setAutosubmit(false);
     $this->setData('autoSubmit', false);
 }
예제 #6
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = array())
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('text');
     $this->setExtType('textfield');
     if (isset($data['value'])) {
         $this->setValue($data['value']);
     }
 }
예제 #7
0
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Framework\View\Asset\Repository $assetRepo
  * @param \Magento\Backend\Model\UrlFactory $backendUrlFactory
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Framework\File\Size $fileConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Backend\Model\UrlFactory $backendUrlFactory, \Magento\Catalog\Helper\Data $catalogData, \Magento\Framework\File\Size $fileConfig, array $data = array())
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->_assetRepo = $assetRepo;
     $this->_url = $backendUrlFactory->create();
     $this->_catalogHelperData = $catalogData;
     $this->_fileConfig = $fileConfig;
     $this->_maxFileSize = $this->_getFileMaxSize();
 }
예제 #8
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->_renderer = Form::getFieldsetRenderer();
     $this->setType('fieldset');
     if (isset($data['advancedSection'])) {
         $this->setAdvancedLabel($data['advancedSection']);
     }
 }
예제 #9
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param TimezoneInterface $localeDate
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, TimezoneInterface $localeDate, $data = [])
 {
     $this->localeDate = $localeDate;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('text');
     $this->setExtType('textfield');
     if (isset($data['value'])) {
         $this->setValue($data['value']);
     }
 }
예제 #10
0
파일: Textarea.php 프로젝트: nja78/magento2
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('textarea');
     $this->setExtType('textarea');
     if (!$this->getRows()) {
         $this->setRows(self::DEFAULT_ROWS);
     }
     if (!$this->getCols()) {
         $this->setCols(self::DEFAULT_COLS);
     }
 }
예제 #11
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = array())
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('password');
     $this->setExtType('textfield');
 }
예제 #12
0
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Locale\CurrencyInterface $localeCurrency
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Locale\CurrencyInterface $localeCurrency, array $data = [])
 {
     $this->localeCurrency = $localeCurrency;
     $this->storeManager = $storeManager;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
 }
예제 #13
0
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param UrlInterface $urlBuilder
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, UrlInterface $urlBuilder, $data = [])
 {
     $this->_urlBuilder = $urlBuilder;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('file');
 }
예제 #14
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('text');
     $this->setLineCount(2);
 }
예제 #15
0
파일: Tax.php 프로젝트: nja78/magento2
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Catalog\Helper\Product $helper
  * @param \Magento\Framework\Locale\Format $localeFormat
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Framework\Locale\Format $localeFormat, array $data = [])
 {
     $this->localeFormat = $localeFormat;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
 }
예제 #16
0
 public function __construct(\Magento\Framework\View\LayoutInterface $layout, Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, array $data = [])
 {
     $this->layout = $layout;
     $this->setType('hidden');
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
 }
예제 #17
0
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, Escaper $escaper, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('custom_container');
 }
예제 #18
0
파일: Gallery.php 프로젝트: aiesh/magento2
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Framework\View\LayoutInterface $layout
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Framework\View\LayoutInterface $layout, \Magento\Store\Model\StoreManagerInterface $storeManager, $data = array())
 {
     $this->_layout = $layout;
     $this->_storeManager = $storeManager;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
 }
예제 #19
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('checkbox');
     $this->setExtType('checkbox');
 }
예제 #20
0
파일: Export.php 프로젝트: aiesh/magento2
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Backend\Helper\Data $helper
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Backend\Model\UrlInterface $backendUrl, array $data = array())
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->_backendUrl = $backendUrl;
 }
예제 #21
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = array())
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('file');
 }
예제 #22
0
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('text');
     $this->setExtType('textfield');
 }
예제 #23
0
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, $data = array())
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setType('column');
 }
예제 #24
0
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, LayoutInterface $layoutInterface, array $data = [])
 {
     $this->_layout = $layoutInterface;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
 }