/** * @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'); }
/** * @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); }
/** * @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(); }
/** * @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); }
/** * @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); }
/** * @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']); } }
/** * @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(); }
/** * @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']); } }
/** * @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']); } }
/** * @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); } }
/** * @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'); }
/** * @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); }
/** * @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'); }
/** * @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); }
/** * @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); }
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); }
/** * @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'); }
/** * @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); }
/** * @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'); }
/** * @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; }
/** * @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'); }
/** * @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'); }
/** * @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'); }
public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, LayoutInterface $layoutInterface, array $data = []) { $this->_layout = $layoutInterface; parent::__construct($factoryElement, $factoryCollection, $escaper, $data); }