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


PHP Mage_Adminhtml_Block_Widget::_toHtml方法代码示例

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


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

示例1: _toHtml

 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     $accordion = $this->getLayout()->createBlock('adminhtml/widget_accordion')->setId('aitattachmentInfo');
     $accordion->addItem('aitattachment', array('title' => Mage::helper('adminhtml')->__('Attachments'), 'content' => $this->getLayout()->createBlock('aitemails/email_template_edit_attachments')->toHtml(), 'open' => true));
     $this->setChild('accordion', $accordion);
     return parent::_toHtml();
 }
开发者ID:kiutisuperking,项目名称:eatsmartboxdev,代码行数:12,代码来源:Downloadable.php

示例2: _toHtml

 protected function _toHtml()
 {
     if (($model = $this->getGridModel()) && ((!$this->getNeedExistingModel() || !$this->getIsNewModel()) && ($this->getDisplayableWithoutBlock() || ($block = $this->getGridBlock()) && Mage::helper('customgrid')->isRewritedGrid($block)))) {
         return parent::_toHtml();
     }
     return '';
 }
开发者ID:buttasg,项目名称:cowgirlk,代码行数:7,代码来源:Abstract.php

示例3: _toHtml

 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $selectBlock = $this->getLayout()->createBlock('core/html_select')->setName($this->getName())->setId($this->getId())->setOptions($this->getBlocks())->setValue($this->getSelected());
     if ($this->getDisabled()) {
         $selectBlock->setExtraParams('disabled')->setClass('select disabled');
     } else {
         $selectBlock->setClass('select');
     }
     return parent::_toHtml() . $selectBlock->toHtml();
 }
开发者ID:ahsanmage,项目名称:vr,代码行数:15,代码来源:Position.php

示例4: _toHtml

 protected function _toHtml()
 {
     $this->tableName = $this->getRequest()->getParam('table');
     $this->modelName = $this->getRequest()->getParam('model');
     $this->rowsIds = explode(',', $this->getRequest()->getParam('ids'));
     // --------------------------------------
     $data = array('id' => 'development_database_update_cell_popup_confirm_button', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'onclick' => 'DevelopmentDatabaseGridHandlerObj.confirmUpdateTableCellsPopup();');
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
     $this->setChild('popup_confirm_button', $buttonBlock);
     // --------------------------------------
     return parent::_toHtml();
 }
开发者ID:xiaoguizhidao,项目名称:ecommerce,代码行数:12,代码来源:UpdateCellsPopup.php

示例5: _toHtml

 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!$this->getWidgetTemplates()) {
         $html = '<p class="nm"><small>' . Mage::helper('widget')->__('Please Select Block Reference First') . '</small></p>';
     } elseif (count($this->getWidgetTemplates()) == 1) {
         $widgetTemplate = current($this->getWidgetTemplates());
         $html = '<input type="hidden" name="template" value="' . $widgetTemplate['value'] . '" />';
         $html .= $widgetTemplate['label'];
     } else {
         $html = $this->getLayout()->createBlock('core/html_select')->setName('template')->setClass('select')->setOptions($this->getWidgetTemplates())->setValue($this->getSelected())->toHtml();
     }
     return parent::_toHtml() . $html;
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:18,代码来源:Template.php

示例6: _toHtml

 protected function _toHtml()
 {
     // --------------------------------------
     $data = array('id' => 'development_database_update_cell_popup_confirm_button', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'onclick' => 'DevelopmentDatabaseGridHandlerObj.confirmUpdateCells();');
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
     $this->setChild('popup_confirm_update_button', $buttonBlock);
     // --------------------------------------
     // --------------------------------------
     $data = array('id' => 'development_database_add_cell_popup_confirm_button', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'onclick' => 'DevelopmentDatabaseGridHandlerObj.confirmAddRow();');
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
     $this->setChild('popup_confirm_add_button', $buttonBlock);
     // --------------------------------------
     return parent::_toHtml();
 }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:14,代码来源:TableCellsPopup.php

示例7: _toHtml

 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $params = array();
     if ($this->getExtraParams()) {
         $params[] = $this->getExtraParams();
     }
     $selectBlock = $this->getLayout()->createBlock('core/html_select')->setName($this->getName())->setId($this->getId())->setOptions($this->getHandles())->setValue($this->getSelected());
     if ($this->getDisabled()) {
         $params[] = 'disabled';
         $selectBlock->setClass('select disabled');
     } else {
         $selectBlock->setClass('select');
     }
     if (count($params) > 0) {
         $selectBlock->setExtraParams(implode(' ', $params));
     }
     return parent::_toHtml() . $selectBlock->toHtml();
 }
开发者ID:ahsanmage,项目名称:vr,代码行数:23,代码来源:Handle.php

示例8: _toHtml

 public function _toHtml()
 {
     /** @var $input Webguys_Easytemplate_Block_Adminhtml_Edit_Renderer */
     $input = $this->getLayout()->createBlock('easytemplate/adminhtml_edit_renderer');
     $input->setTemplateModel($this->getTemplateModel());
     $this->setChild('input', $input);
     $html = parent::_toHtml();
     if ($this->getTemplateModel() && $this->getTemplateModel()->getId()) {
         foreach ($this->getTemplateModel()->getData() as $replace => $to) {
             if (in_array($replace, array('valid_from', 'valid_to'))) {
                 $date = strftime($this->getDateStrFormat(), strtotime($to));
                 $html = str_replace('{{' . $replace . '}}', $to ? $date : '--', $html);
             } else {
                 $html = str_replace('{{' . $replace . '}}', $to, $html);
             }
         }
     }
     return $html;
 }
开发者ID:ffuenf,项目名称:EasyTemplate,代码行数:19,代码来源:Box.php

示例9: _toHtml

 protected function _toHtml()
 {
     //		$this->addTab('xcustomer_options', array(
     //			'label' => Mage::helper('catalog')->__('XXCustom Options'),
     //			'url'   => $this->getUrl('*/*/options', array('_current' => true)),
     //			'class' => 'ajax',
     //			));
     $accordion = $this->getLayout()->createBlock('adminhtml/widget_accordion')->setId('cartexGrouped');
     $accordion->addItem('promotemplate', array('title' => Mage::helper('adminhtml')->__('Choose Promo Template'), 'content' => $this->getLayout()->createBlock('cartex/adminhtml_grouped_grouped')->toHtml(), 'open' => true));
     $accordion->addItem('promoproducts', array('title' => Mage::helper('adminhtml')->__('Grouped Promotional Products'), 'content' => $this->getLayout()->createBlock('cartex/adminhtml_grouped_grid')->toHtml(), 'open' => true));
     //		$accordion->addItem('productstab', array(
     //			'title'   => Mage::helper('adminhtml')->__('Grouped Promotional Products'),
     //				//'label'     => Mage::helper('cartex')->__('Assign Grouped Products'),
     //				'url'       => $this->getUrl('cartex/adminhtml_entity/productstab', array('_current' => true)),
     //				'class'     => 'ajax',
     //				'open'    => true,
     //				));
     $this->setChild('accordion', $accordion);
     return parent::_toHtml();
     //return parent::_prepareLayout();
 }
开发者ID:brentwpeterson,项目名称:magento_cart_promo,代码行数:21,代码来源:Promoitems.php

示例10: _toHtml

 protected function _toHtml()
 {
     $this->_titleFieldSet = "General Information";
     $accordion = $this->getLayout()->createBlock('adminhtml/widget_accordion')->setId("general_information");
     $this->setChild('accordion_general_information', $accordion);
     $accordion->addItem("general_information", array('title' => "Genral Information", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_form')->toHtml()));
     $this->setChild('accordion_general_settings', $accordion);
     $accordion->addItem("general_settings", array('title' => "Genral Settings", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_general')->toHtml()));
     $this->setChild('accordion_general_loop', $accordion);
     $accordion->addItem("loop", array('title' => "Loop &amp; Progress", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_loop')->toHtml()));
     $this->setChild('accordion_general_appearance', $accordion);
     $accordion->addItem("appearance", array('title' => "Appearance", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_appearance')->toHtml()));
     $this->setChild('accordion_general_navigation', $accordion);
     $accordion->addItem("navigation", array('title' => "Navigation", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_navigation')->toHtml()));
     $this->setChild('accordion_general_thumbnails', $accordion);
     $accordion->addItem("thumbnails", array('title' => "Thumbnails", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_thumbnails')->toHtml()));
     $this->setChild('accordion_general_spinner', $accordion);
     $accordion->addItem("spinner", array('title' => "Spinner", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_spinner')->toHtml()));
     $this->setChild('accordion_general_parallax', $accordion);
     $accordion->addItem("parallax", array('title' => "Parallax", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_parallax')->toHtml()));
     $this->setChild('accordion_general_mobile', $accordion);
     $accordion->addItem("mobile", array('title' => "Mobile", 'content' => $this->getLayout()->createBlock('revslideshow/adminhtml_revslideshow_edit_tab_accordion_mobile')->toHtml()));
     return parent::_toHtml();
 }
开发者ID:CodazonGroup,项目名称:coda,代码行数:24,代码来源:Accordion.php

示例11: _toHtml

 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     $fieldsetKey = $this->getFieldset();
     $this->_fieldSetCollection = $this->getData($fieldsetKey);
     $open = true;
     if (count($this->_fieldSetCollection) > 1) {
         $open = false;
     }
     foreach ($this->_fieldSetCollection as $index => $valueSet) {
         $show = true;
         if (isset($valueSet['show'])) {
             $show = (bool) $valueSet['show'];
         }
         if ($show) {
             $this->_titleFieldSet = $valueSet['label'];
             if (isset($valueSet['comment'])) {
                 $this->_comment = $valueSet['comment'];
             }
             $accordion = $this->getLayout()->createBlock('adminhtml/widget_accordion')->setId($index);
             $accordion->addItem($index, array('title' => $valueSet['label'], 'content' => $this->getLayout()->createBlock('themeframework/adminhtml_theme_edit_tab_accordion_form')->setData($index, $valueSet['fields'])->setData('comment', $this->_comment)->setData('field', $index)->toHtml(), 'open' => $open));
             $this->setChild('accordion_' . $index, $accordion);
         }
     }
     return parent::_toHtml();
 }
开发者ID:ahsanmage,项目名称:vr,代码行数:30,代码来源:Accordion.php

示例12: _toHtml

 protected function _toHtml()
 {
     $breadcrumb = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_category_breadcrumb');
     $breadcrumb->setStep(2);
     return $breadcrumb->toHtml() . parent::_toHtml();
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:6,代码来源:Wrapper.php

示例13: _toHtml

 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getChildHtml('help') . $this->getChildHtml('selling_format') . $this->getChildHtml('description');
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:4,代码来源:Selling.php

示例14: _toHtml

 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $selectBlock = $this->getLayout()->createBlock('core/html_select')->setName('block')->setClass('required-entry select')->setExtraParams('onchange="WidgetInstance.loadSelectBoxByType(\'block_template\',' . ' this.up(\'div.group_container\'), this.value)"')->setOptions($this->getBlocks())->setValue($this->getSelected());
     return parent::_toHtml() . $selectBlock->toHtml();
 }
开发者ID:monkviper,项目名称:magento-lite,代码行数:10,代码来源:Block.php

示例15: _toHtml

 protected function _toHtml()
 {
     if (count($this->rows) == 0) {
         return '';
     }
     return parent::_toHtml();
 }
开发者ID:ppkowalski,项目名称:M2E,代码行数:7,代码来源:Summary.php


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