本文整理汇总了PHP中Magento\Backend\Block\Widget\Form\Generic::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Generic::_construct方法的具体用法?PHP Generic::_construct怎么用?PHP Generic::_construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Backend\Block\Widget\Form\Generic
的用法示例。
在下文中一共展示了Generic::_construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _construct
/**
* Init class
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('taxRuleForm');
$this->setTitle(__('Tax Rule Information'));
$this->setUseContainer(true);
}
示例2: _construct
/**
* Initialize form
* Add standard buttons
* Add "Save and Apply" button
* Add "Save and Continue" button
*
* @return void
*/
protected function _construct()
{
$this->_controller = 'shqlogger';
$this->_blockGroup = 'ShipperHQ_Logger';
$this->_headerText = __('ShipperHQ Log Record');
parent::_construct();
}
示例3: _construct
/**
* Set the selected resources, which is an array of resource ids.
*
* If everything is allowed, the array will contain just the root resource id, which is "Magento_Backend::all".
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$integrationData = $this->_coreRegistry->registry(IntegrationController::REGISTRY_KEY_CURRENT_INTEGRATION);
if (is_array($integrationData) && isset($integrationData['integration_id']) && $integrationData['integration_id']) {
$this->_selectedResources = $this->integrationService->getSelectedResources($integrationData['integration_id']);
} else {
$this->_selectedResources = [];
}
}
示例4: _construct
/**
* Init Form properties
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('catalog_search_form');
$this->setTitle(__('Search Information'));
}
示例5: _construct
/**
* Init form
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('sitemap_form');
$this->setTitle(__('Sitemap Information'));
}
示例6: _construct
protected function _construct()
{
parent::_construct();
$this->setId('dashboard_form');
}
示例7: _construct
/**
* Class constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$savedFromData = $this->retrieveFormResources();
if (false !== $savedFromData) {
$this->setSelectedResources($savedFromData);
return;
}
$integrationData = $this->_coreRegistry->registry(IntegrationController::REGISTRY_KEY_CURRENT_INTEGRATION);
if (is_array($integrationData) && isset($integrationData['integration_id']) && $integrationData['integration_id']) {
$this->setSelectedResources($this->integrationService->getSelectedResources($integrationData['integration_id']));
} else {
$this->setSelectedResources([]);
}
}
示例8: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('promo_quote_form');
$this->setTitle(__('Rule Information'));
}
示例9: _construct
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setDestElementId(self::FORM_ELEMENT_ID);
}
示例10: _construct
/**
* Prepare form tab configuration
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setShowGlobalIcon(true);
}
示例11: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('avatax_tax_classes_' . \strtolower($this->classType));
}
示例12: _construct
/**
* Set the selected resources, which is an array of resource ids. If everything is allowed, the
* array will contain just the root resource id, which is "Magento_Adminhtml::all".
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_selectedResources = $this->_webapiHelper->getSelectedResources();
}
示例13: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('new_order_status');
}
示例14: _construct
/**
* Set form id and title
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('urlrewrite_form');
$this->setTitle(__('Block Information'));
}
示例15: _construct
/**
* Class constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('coreStoreForm');
}