当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Adminhtml_Block_Widget_Form::_toHtml方法代码示例

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


在下文中一共展示了Mage_Adminhtml_Block_Widget_Form::_toHtml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _toHtml

 protected function _toHtml()
 {
     $html = $this->getLayout()->createBlock('adminhtml/template')->setTemplate('affiliateplusprogram/descriptions.phtml')->toHtml();
     $html .= $this->getLayout()->createBlock('affiliateplusprogram/adminhtml_program_edit_tab_categories')->toHtml();
     $html .= parent::_toHtml();
     return $html;
 }
开发者ID:billadams,项目名称:forever-frame,代码行数:7,代码来源:Conditions.php

示例2: _toHtml

 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!Mage::getStoreConfigFlag('widefocus_widget_previews/general/enabled') || !Mage::getStoreConfigFlag('widefocus_widget_previews/general/enabled_in_wysiwig')) {
         return '';
     }
     return parent::_toHtml();
 }
开发者ID:WideFocus,项目名称:WidgetPreviews,代码行数:12,代码来源:Container.php

示例3: _toHtml

 protected function _toHtml()
 {
     if ($this->getRequest()->getParam('ajax')) {
         return parent::_toHtml();
     }
     return $this->_getFormMessages() . parent::_toHtml();
 }
开发者ID:AleksNesh,项目名称:pandora,代码行数:7,代码来源:Tab.php

示例4: _toHtml

 protected function _toHtml()
 {
     $sHtml = parent::_toHtml();
     $sContent = $this->getCustomEditHtml();
     $sHtml = str_replace('</form>', $sContent . '</form>', $sHtml);
     return $sHtml;
 }
开发者ID:finelinePG,项目名称:finelink-dev,代码行数:7,代码来源:Form.php

示例5: _toHtml

 protected function _toHtml()
 {
     if ($this->getRequest()->getParam('step')) {
         $breadcrumb = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_breadcrumb', '', array('step' => $this->getRequest()->getParam('step', 2)));
         return $breadcrumb->_toHtml() . parent::_toHtml();
     }
     return parent::_toHtml();
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:8,代码来源:Form.php

示例6: _toHtml

 public function _toHtml()
 {
     $this->setTemplate('em_slideshow2/slider_video_upload.phtml');
     $video = $this->getVideo();
     $this->assign('count', count($video));
     $this->assign('video', $video);
     return parent::_toHtml();
 }
开发者ID:ahsanmage,项目名称:vr,代码行数:8,代码来源:Video.php

示例7: _toHtml

 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $html = '<form ' . $this->getForm()->serialize($this->getForm()->getHtmlAttributes()) . '>';
     $html .= '<input name="form_key" type="hidden" value="' . Mage::getSingleton('core/session')->getFormKey() . '" />';
     $html .= parent::_toHtml();
     $html .= $this->getLayout()->createBlock('mep/adminhtml_attribute_view_edit_options')->toHtml();
     $html .= '</form>';
     return $html;
 }
开发者ID:tschifftner,项目名称:Magento-MEP,代码行数:14,代码来源:Form.php

示例8: _toHtml

 protected function _toHtml()
 {
     if (!Mage::registry('slideritems_data')) {
         $this->assign('sliderlinks', false);
         return parent::_toHtml();
     }
     $collection = Mage::getModel('slider/slider_links')->getResourceCollection()->addSliderLinkFilter(Mage::registry('slideritems_data')->getSlideritem_id())->load();
     $this->assign('sliderlinks', $collection);
     return parent::_toHtml();
 }
开发者ID:johnjcsmith,项目名称:carousel-slider,代码行数:10,代码来源:Links.php

示例9: _toHtml

 protected function _toHtml()
 {
     $html = parent::_toHtml();
     if (isset($this->_datapin['id'])) {
         if ($this->_datapin['filetype'] != HN_Pin_Model_Pin::TEXT_TYPE) {
             $html_plus = "<a href='" . Mage::getUrl('pin/adminhtml_pin/viewfilepin', array('id' => $this->_datapin['id'])) . "' >" . "View File" . "</a>";
             $html = $html . $html_plus;
         }
     }
     return $html;
 }
开发者ID:Farik2605,项目名称:tobi,代码行数:11,代码来源:Form.php

示例10: _toHtml

 protected function _toHtml()
 {
     if ($this->_canDisplay) {
         $html = parent::_toHtml();
         if ($this->getEditedInGrid()) {
             $html .= '<input name="form_key" type="hidden" value="' . Mage::getSingleton('core/session')->getFormKey() . '" />';
         }
         return $html;
     }
     return '';
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:11,代码来源:Form.php

示例11: _toHtml

    protected function _toHtml()
    {
        return parent::_toHtml() . '
			<script type="text/javascript">
			var templateSyntax = /(^|.|\\r|\\n)({{(\\w+)}})/;
			function setSettings(urlTemplate, typeElement) {
		        var template = new Template(urlTemplate, templateSyntax);
		        
		        setLocation(template.evaluate({type:$F(typeElement)}));
		    }
			</script>';
    }
开发者ID:naz-ahmed,项目名称:ndap-magento-mirror,代码行数:12,代码来源:Type.php

示例12: _toHtml

 public function _toHtml()
 {
     $this->setTemplate('em_slideshow2/slider_img.phtml');
     $data = unserialize(base64_decode(Mage::registry('slideshow2_data')->getImages()));
     if ($data) {
         $count = count($data);
     } else {
         $count = 0;
     }
     $this->assign('count', $count);
     $this->assign('data', $data);
     return parent::_toHtml();
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:13,代码来源:Images.php

示例13: _toHtml

 public function _toHtml()
 {
     $this->setTemplate('em_slideshow2/slider_img.phtml');
     $helper = Mage::helper("slideshow2");
     $data = $helper->emslider_decode(Mage::registry('slideshow2_data')->getImages());
     if ($data) {
         $count = count($data);
     } else {
         $count = 0;
     }
     $this->assign('count', $count);
     $this->assign('data', $data);
     return parent::_toHtml();
 }
开发者ID:ahsanmage,项目名称:vr,代码行数:14,代码来源:Images.php

示例14: _toHtml

 public function _toHtml()
 {
     $sHtml = parent::_toHtml();
     $sHtml .= '
         <script type="text/javascript">
             var productTemplateSyntax = /(^|.|\\r|\\n)({{(\\w+)}})/;
             function setSettings(urlTemplate, eventName) {
                 var template = new Template(urlTemplate, productTemplateSyntax);
                 setLocation(template.evaluate({event_name:$F(eventName)}));
             }
         </script>
     ';
     return $sHtml;
 }
开发者ID:eniuz,项目名称:gamification,代码行数:14,代码来源:Event.php

示例15: _toHtml

 protected function _toHtml()
 {
     if (!Mage::registry('slideritems_data')) {
         $this->assign('sliderimage', false);
         return parent::_toHtml();
     }
     $collection = Mage::getModel('slider/slider_items')->getCollection()->addFieldToSelect(array('slider_image_path'))->addFieldToFilter('slideritem_id', Mage::registry('slideritems_data')->getSlideritem_id());
     $imagedata = $collection->getData();
     if (isset($imagedata[0])) {
         if ($imagedata[0] != NULL) {
             $this->assign('sliderimage', $imagedata[0]);
         }
     }
     return parent::_toHtml();
 }
开发者ID:johnjcsmith,项目名称:carousel-slider,代码行数:15,代码来源:Image.php


注:本文中的Mage_Adminhtml_Block_Widget_Form::_toHtml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。