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


PHP Generic::_construct方法代碼示例

本文整理匯總了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);
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:12,代碼來源:Form.php

示例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();
 }
開發者ID:shipperhq,項目名稱:module-logger,代碼行數:15,代碼來源:View.php

示例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 = [];
     }
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:17,代碼來源:Webapi.php

示例4: _construct

 /**
  * Init Form properties
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('catalog_search_form');
     $this->setTitle(__('Search Information'));
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:11,代碼來源:Form.php

示例5: _construct

 /**
  * Init form
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('sitemap_form');
     $this->setTitle(__('Sitemap Information'));
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:11,代碼來源:Form.php

示例6: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setId('dashboard_form');
 }
開發者ID:etwandro,項目名稱:magento2,代碼行數:5,代碼來源:Form.php

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

示例8: _construct

 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('promo_quote_form');
     $this->setTitle(__('Rule Information'));
 }
開發者ID:pradeep-wagento,項目名稱:magento2,代碼行數:11,代碼來源:Form.php

示例9: _construct

 /**
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setDestElementId(self::FORM_ELEMENT_ID);
 }
開發者ID:shabbirvividads,項目名稱:magento2,代碼行數:8,代碼來源:Form.php

示例10: _construct

 /**
  * Prepare form tab configuration
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setShowGlobalIcon(true);
 }
開發者ID:shabbirvividads,項目名稱:magento2,代碼行數:10,代碼來源:Design.php

示例11: _construct

 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('avatax_tax_classes_' . \strtolower($this->classType));
 }
開發者ID:classyllama,項目名稱:ClassyLlama_AvaTax,代碼行數:10,代碼來源:Form.php

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

示例13: _construct

 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('new_order_status');
 }
開發者ID:pradeep-wagento,項目名稱:magento2,代碼行數:10,代碼來源:Form.php

示例14: _construct

 /**
  * Set form id and title
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('urlrewrite_form');
     $this->setTitle(__('Block Information'));
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:11,代碼來源:Form.php

示例15: _construct

 /**
  * Class constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('coreStoreForm');
 }
開發者ID:pradeep-wagento,項目名稱:magento2,代碼行數:10,代碼來源:AbstractForm.php


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