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


PHP Mage_Adminhtml_Block_Abstract::_toHtml方法代碼示例

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


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

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

示例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()
 {
     $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

示例3: _toHtml

 /**
  * Set data to block
  *
  * @return string
  */
 protected function _toHtml()
 {
     $agreement = $this->_getBillingAgreement();
     $this->setReferenceId($agreement->getReferenceId());
     $customer = Mage::getModel('Mage_Customer_Model_Customer')->load($agreement->getCustomerId());
     $this->setCustomerUrl($this->getUrl('*/customer/edit', array('id' => $customer->getId())));
     $this->setCustomerEmail($customer->getEmail());
     $this->setStatus($agreement->getStatusLabel());
     $this->setCreatedAt($this->helper('Mage_Core_Helper_Data')->formatDate($agreement->getCreatedAt(), 'short', true));
     $this->setUpdatedAt($agreement->getUpdatedAt() ? $this->helper('Mage_Core_Helper_Data')->formatDate($agreement->getUpdatedAt(), 'short', true) : $this->__('N/A'));
     return parent::_toHtml();
 }
開發者ID:nemphys,項目名稱:magento2,代碼行數:17,代碼來源:Info.php

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

示例5: _toHtml

 /**
  * _toHtml
  *
  * @return string
  */
 public function _toHtml()
 {
     return parent::_toHtml();
 }
開發者ID:barneydesmond,項目名稱:propitious-octo-tribble,代碼行數:9,代碼來源:Result.php

示例6: _toHtml

 /**
  * Check if a payment method can be found before rendering the template.
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!$this->getPaymentMethod()) {
         return '';
     }
     return parent::_toHtml();
 }
開發者ID:technomagegithub,項目名稱:olgo.nl,代碼行數:12,代碼來源:RefundFields.php


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