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


PHP Mage_Adminhtml_Block_Abstract::_prepareLayout方法代碼示例

本文整理匯總了PHP中Mage_Adminhtml_Block_Abstract::_prepareLayout方法的典型用法代碼示例。如果您正苦於以下問題:PHP Mage_Adminhtml_Block_Abstract::_prepareLayout方法的具體用法?PHP Mage_Adminhtml_Block_Abstract::_prepareLayout怎麽用?PHP Mage_Adminhtml_Block_Abstract::_prepareLayout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Mage_Adminhtml_Block_Abstract的用法示例。


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

示例1: _prepareLayout

 protected function _prepareLayout()
 {
     $this->runUpdate();
     $this->setTemplate('googlebasefeedgenerator/system/process.phtml');
     parent::_prepareLayout();
     return $this;
 }
開發者ID:xiaoguizhidao,項目名稱:beut,代碼行數:7,代碼來源:Process.php

示例2: _prepareLayout

 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if (!Mage::helper('udropship')->isModuleActive('Unirgy_DropshipMicrosite') || !Mage::helper('umicrosite')->getCurrentVendor()) {
         $this->getLayout()->getBlock('product_tabs')->addTab('udmulti_vendors', 'udmulti/adminhtml_product_vendors');
     }
 }
開發者ID:xiaoguizhidao,項目名稱:magento,代碼行數:7,代碼來源:Condition.php

示例3: _prepareLayout

 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addCss(self::SYSTEM_CONFIG_EDIT_CSS_FILE);
     /**
      * For Magento 1.6 and 1.11 we need to add another css file.
      */
     $helper = Mage::helper('tig_myparcel');
     $isEnterprise = $helper->isEnterprise();
     /**
      * Get the minimum version requirement for the current Magento edition.
      */
     if ($isEnterprise) {
         $minimumVersion = '1.12.0.0';
     } else {
         $minimumVersion = '1.7.0.0';
     }
     /**
      * Check if the current version is below the minimum version requirement.
      */
     $isBelowMinimumVersion = version_compare(Mage::getVersion(), $minimumVersion, '<');
     if ($isBelowMinimumVersion) {
         $this->getLayout()->getBlock('head')->addCss(self::MAGENTO_16_CSS_FILE);
     }
     return parent::_prepareLayout();
 }
開發者ID:myparcelnl,項目名稱:magento1,代碼行數:25,代碼來源:SupportTab.php

示例4: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('reply', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_reply'));
     $this->setChild('thread', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_thread'));
     $this->setChild('details', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_details'));
     $this->setChild('customer_summary', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerSummary'));
     $this->setChild('customer_orders', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerOrders'));
     $this->setChild('customer_tickets', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerTickets'));
     return parent::_prepareLayout();
 }
開發者ID:protechhelp,項目名稱:gamamba,代碼行數:10,代碼來源:Form.php

示例5: _prepareLayout

 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addJs('web2print/resourcebrowser.js');
     $this->getLayout()->getBlock('head')->addCss('css/resourcebrowser.css');
     $this->getLayout()->getBlock('head')->addItem('js_css', 'prototype/windows/themes/default.css');
     if (Mage::helper('web2print')->getMagentoVersionForCss()) {
         $this->getLayout()->getBlock('head')->addCss('lib/prototype/windows/themes/magento.css');
     } else {
         $this->getLayout()->getBlock('head')->addItem('js_css', 'prototype/windows/themes/magento.css');
     }
     $block = $this->getLayout()->createBlock('Chili_Web2print_Block_System_Config_Form_Resourcebrowserbase', 'resourcebrowser_base');
     $this->getLayout()->getBlock('content')->append($block);
     return parent::_prepareLayout();
 }
開發者ID:finelinePG,項目名稱:finelink-dev,代碼行數:14,代碼來源:Render.php

示例6: __construct

 /**
  * Set template
  */
 public function __construct()
 {
     parent::_prepareLayout();
     $this->setTemplate('capayable/support.phtml');
 }
開發者ID:blueglobeNL,項目名稱:tritac-capayable,代碼行數:8,代碼來源:Support.php

示例7: _prepareLayout

 protected function _prepareLayout()
 {
     //placed here, instead of in layout.xml to make sure it is only loaded for Buckaroo's section
     $this->getLayout()->getBlock('head')->addCss('css/tig_buckaroo3extended/supportTab.css');
     return parent::_prepareLayout();
 }
開發者ID:technomagegithub,項目名稱:olgo.nl,代碼行數:6,代碼來源:SupportTab.php


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