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


PHP Mage_Adminhtml_Block_Abstract類代碼示例

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


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

示例1: _toHtml

 /**
  * Do a few checks to see if the template should be rendered before actually rendering it.
  *
  * @return string
  *
  * @see Mage_Adminhtml_Block_Abstract::_toHtml()
  */
 protected function _toHtml()
 {
     $shipment = Mage::registry('current_shipment');
     $helper = Mage::helper('tig_myparcel');
     if (!$helper->isEnabled() || !$shipment || !$helper->shippingMethodIsMyParcel($shipment->getOrder()->getShippingMethod())) {
         return '';
     }
     return parent::_toHtml();
 }
開發者ID:myparcelnl,項目名稱:magento1,代碼行數:16,代碼來源:ConsignmentOptions.php

示例2: _toHtml

 /**
  * Do a few checks to see if the template should be rendered before actually rendering it.
  *
  * @return string
  *
  * @see Mage_Adminhtml_Block_Abstract::_toHtml()
  */
 protected function _toHtml()
 {
     $shippingMethod = $this->_order->getShippingMethod();
     if (!$this->_helper->isEnabled() || !$this->_order || !$this->_helper->shippingMethodIsMyParcel($shippingMethod)) {
         return '';
     }
     return parent::_toHtml();
 }
開發者ID:myparcelnl,項目名稱:magento1,代碼行數:15,代碼來源:ShippingInfo.php

示例3: _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

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $id = $this->getRequest()->getParam('currentProductId');
     $this->ebayListingProduct = Mage::helper('M2ePro/Component_Ebay')->getObject('Listing_Product', $id)->getChildObject();
     $this->setTemplate('M2ePro/ebay/listing/preview.phtml');
 }
開發者ID:giuseppemorelli,項目名稱:magento-extension,代碼行數:7,代碼來源:Preview.php

示例5: _prepareLayout

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

示例6: _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

示例7: getOrder

 public function getOrder()
 {
     $order = parent::getOrder();
     if ($order) {
         return $order;
     }
     return Mage::registry('current_order');
 }
開發者ID:hoadaithieu,項目名稱:mage-giftwrap,代碼行數:8,代碼來源:Wrap.php

示例8: _toHtml

 /**
  * It was decided to use the overwritable _toHtml instead of a template
  * to be consistent with magento renderers and to increase portability
  * 
  * @return string
  */
 protected function _toHtml()
 {
     $html = parent::_toHtml();
     $html .= "<form id='{$this->getFormId()}' action='{$this->getFormAction()}' method='post' class='{$this->getFormClass()}' enctype='multipart/form-data'>";
     $minigrid = new BlueAcorn_MiniGrid_Block_System_Config_Form_Field_Minigrid();
     $html .= $minigrid->getElementHtml("ba-minigrid-form-grid", $this->getFieldName(), $this->getGridFields(), $this->getGridRowData());
     $html .= "\n            </form>\n            <script type='text/javascript'>\n                function submitMinigridForm() {\n                    \$('{$this->getFormId()}').submit();\n                }\n            </script>\n\n";
     return $html;
 }
開發者ID:technomagegithub,項目名稱:colb2b,代碼行數:15,代碼來源:Form.php

示例9: _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

示例10: _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

示例11: _construct

 /**
  * @see parent
  */
 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('bronto/news/item.phtml');
 }
開發者ID:xiaoguizhidao,項目名稱:blingjewelry-prod,代碼行數:8,代碼來源:ItemRender.php

示例12: __construct

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

示例13: setParentBlock

 public function setParentBlock(Mage_Core_Block_Abstract $block)
 {
     $block->unsetChild('save_button');
     return parent::setParentBlock($block);
 }
開發者ID:kirchbergerknorr,項目名稱:payone-magento,代碼行數:5,代碼來源:Payment.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('crm/customtab.phtml');
 }
開發者ID:platonicsolution,項目名稱:local-server,代碼行數:5,代碼來源:Customtab.php

示例15: _construct

 /**
  * Instantiate a recurring payment profile to use it as a helper
  */
 protected function _construct()
 {
     $this->_profile = Mage::getSingleton('Mage_Sales_Model_Recurring_Profile');
     return parent::_construct();
 }
開發者ID:relue,項目名稱:magento2,代碼行數:8,代碼來源:Form.php


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