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


PHP Widget\Tabs類代碼示例

本文整理匯總了PHP中Magento\Backend\Block\Widget\Tabs的典型用法代碼示例。如果您正苦於以下問題:PHP Tabs類的具體用法?PHP Tabs怎麽用?PHP Tabs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Tabs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _beforeToHtml

 /**
  * Set tabs
  *
  * @return \Magento\Connect\Block\Adminhtml\Extension\Custom\Edit\Tabs
  */
 protected function _beforeToHtml()
 {
     //        $this->addTab('package', array(
     //            'label'     => __('Package Info'),
     //            'content'   => $this->_getTabHtml('package'),
     //            'active'    => true,
     //        ));
     //
     //        $this->addTab('release', array(
     //            'label'     => __('Release Info'),
     //            'content'   => $this->_getTabHtml('release'),
     //        ));
     //
     //        $this->addTab('maintainers', array(
     //            'label'     => __('Authors'),
     //            'content'   => $this->_getTabHtml('authors'),
     //        ));
     //
     //        $this->addTab('depends', array(
     //            'label'     => __('Dependencies'),
     //            'content'   => $this->_getTabHtml('depends'),
     //        ));
     //
     //        $this->addTab('contents', array(
     //            'label'     => __('Contents'),
     //            'content'   => $this->_getTabHtml('contents'),
     //        ));
     //
     //        $this->addTab('load', array(
     //            'label'     => __('Load local Package'),
     //            'class'     => 'ajax',
     //            'url'       => $this->getUrl('adminhtml/*/loadtab', array('_current' => true)),
     //        ));
     return parent::_beforeToHtml();
 }
開發者ID:Atlis,項目名稱:docker-magento2,代碼行數:40,代碼來源:Tabs.php

示例2: _construct

 /**
  * Constructor.
  */
 public function _construct()
 {
     parent::_construct();
     $this->setId('ddg_rules_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Exclusion Rule'));
 }
開發者ID:dotmailer,項目名稱:dotmailer-magento2-extension,代碼行數:10,代碼來源:Tabs.php

示例3: _construct

 /**
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('page_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Page Information'));
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:10,代碼來源:Tabs.php

示例4: _construct

 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('emizentech_shopbybrand_items_edit_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Item'));
 }
開發者ID:Doability,項目名稱:magento2dev,代碼行數:12,代碼來源:Tabs.php

示例5: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setId('testimonial_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Testimonial Information'));
 }
開發者ID:ktplKunj,項目名稱:TestMagento,代碼行數:7,代碼來源:Tabs.php

示例6: _beforeToHtml

 /**
  * {@inheritdoc}
  */
 protected function _beforeToHtml()
 {
     $this->addTab('general_section', ['label' => __('General Information'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\General')->toHtml()]);
     $this->addTab('meta_section', ['label' => __('Search Engine Optimization'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Meta')->toHtml()]);
     $this->addTab('products_section', ['label' => __('Related Products'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Products')->toHtml()]);
     return parent::_beforeToHtml();
 }
開發者ID:mirasvit,項目名稱:module-blog,代碼行數:10,代碼來源:Tabs.php

示例7: _construct

 /**
  * Initialize tabs and define tabs block settings
  *
  * @return void
  */
 public function _construct()
 {
     parent::_construct();
     $this->setId('theme_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Theme'));
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:12,代碼來源:Tabs.php

示例8: _construct

 /**
  * Initialize tab
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('billing_agreement_view_tabs');
     $this->setDestElementId('billing_agreement_view');
     $this->setTitle(__('Billing Agreement View'));
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:12,代碼來源:Tabs.php

示例9: _beforeToHtml

 /**
  * @return $this
  */
 protected function _beforeToHtml()
 {
     $this->addTab('main', array('label' => __('Properties'), 'title' => __('Properties'), 'content' => $this->getChildHtml('main'), 'active' => true));
     $this->addTab('labels', array('label' => __('Manage Labels'), 'title' => __('Manage Labels'), 'content' => $this->getChildHtml('labels')));
     $this->addTab('front', array('label' => __('Frontend Properties'), 'title' => __('Frontend Properties'), 'content' => $this->getChildHtml('front')));
     return parent::_beforeToHtml();
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:10,代碼來源:Tabs.php

示例10: _construct

 /**
  * Initialize integration edit page tabs
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('integration_edit_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Basic Settings'));
 }
開發者ID:shabbirvividads,項目名稱:magento2,代碼行數:12,代碼來源:Tabs.php

示例11: _construct

 /**
  * set form data
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('umc_base_module_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Module Creator'));
 }
開發者ID:artmouse,項目名稱:Umc_Base,代碼行數:12,代碼來源:Tabs.php

示例12: _construct

 /**
  * Internal constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('widget_instace_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Widget'));
 }
開發者ID:pradeep-wagento,項目名稱:magento2,代碼行數:12,代碼來源:Tabs.php

示例13: _construct

 /**
  * Class constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setId('post_edit_tabs');
     $this->setDestElementId('edit_form');
     $this->setTitle(__('Category Information'));
 }
開發者ID:osmansorkar,項目名稱:magento2-blog-module,代碼行數:12,代碼來源:Tabs.php

示例14: _prepareLayout

 /**
  * Prepare Layout Content
  *
  * @return $this
  * @SuppressWarnings(PHPMD.CyclomaticComplexity)
  */
 protected function _prepareLayout()
 {
     $this->addTab('category', ['label' => __('Category information'), 'content' => $this->getLayout()->createBlock('Mageplaza\\Blog\\Block\\Adminhtml\\Category\\Edit\\Tab\\Category', 'mageplaza_blog_category_edit_tab_category')->toHtml()]);
     $this->addTab('post', ['label' => __('Posts'), 'content' => $this->getLayout()->createBlock('Mageplaza\\Blog\\Block\\Adminhtml\\Category\\Edit\\Tab\\Post', 'mageplaza_blog_category_edit_tab_post')->toHtml()]);
     // dispatch event add custom tabs
     $this->_eventManager->dispatch('adminhtml_mageplaza_blog_category_tabs', ['tabs' => $this]);
     return parent::_prepareLayout();
 }
開發者ID:mageplaza,項目名稱:magento-2-blog-extension,代碼行數:14,代碼來源:Tabs.php

示例15: _prepareLayout

 /**
  * @return $this
  */
 protected function _prepareLayout()
 {
     $role = $this->_coreRegistry->registry('current_role');
     $this->addTab('info', $this->getLayout()->createBlock('Magento\\User\\Block\\Role\\Tab\\Info')->setRole($role)->setActive(true));
     if ($role->getId()) {
         $this->addTab('roles', array('label' => __('Role Users'), 'title' => __('Role Users'), 'content' => $this->getLayout()->createBlock('Magento\\User\\Block\\Role\\Tab\\Users', 'role.users.grid')->toHtml()));
     }
     return parent::_prepareLayout();
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:12,代碼來源:Edit.php


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