• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Mage_Adminhtml_Block_Abstract类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Mage_Adminhtml_Block_Abstract的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Abstract类的具体用法?PHP Mage_Adminhtml_Block_Abstract怎么用?PHP Mage_Adminhtml_Block_Abstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Mage_Adminhtml_Block_Abstract类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->_defaultValue = Mage::helper('customgrid')->__('<em>Updated</em>');
 }
开发者ID:aram93,项目名称:mage-enhanced-admin-grids,代码行数:5,代码来源:Abstract.php


示例17: _construct

 /**
  * Internal constructor, that is called from real constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('turnkeye/all/fields.phtml');
 }
开发者ID:stan0206,项目名称:mage181,代码行数:9,代码来源:Fields.php


示例18: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('mzax/emarketing/widget/chart-tab.phtml');
 }
开发者ID:jsiefer,项目名称:emarketing,代码行数:5,代码来源:Tab.php


示例19: _toHtml

 /**
  * _toHtml
  *
  * @return string
  */
 public function _toHtml()
 {
     return parent::_toHtml();
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:9,代码来源:Result.php


示例20: _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类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap