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


PHP XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml方法代码示例

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


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

示例1: renderHtml

 public function renderHtml()
 {
     $dep = $this->_renderer->getDependencyHandler();
     $oldClass = $dep->templateClass;
     $dep->templateClass = 'XenForo_Template_Admin';
     XenForo_Template_Abstract::setLanguageId(1);
     // this is the language that was created
     $this->_params['renderedOptions'] = XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml($this, $this->_params['options'], $this->_params['canEditOptionDefinition']);
     $dep->templateClass = $oldClass;
 }
开发者ID:VoDongMy,项目名称:xenforo-laravel5.1,代码行数:10,代码来源:Step4.php

示例2: renderHtml

 /**
  * Renders all options, and splits them into groups according to
  * their 100s display order
  */
 public function renderHtml()
 {
     $options = array();
     foreach ($this->_params['preparedOptions'] as $optionId => $option) {
         $x = floor($option['display_order'] / 100);
         $options[$x][$optionId] = $option;
     }
     $renderedOptions = array();
     foreach ($options as $x => $optionGroup) {
         $renderedOptions[$x] = XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml($this, $optionGroup, $this->_params['canEditOptionDefinition']);
     }
     $this->_params['renderedOptions'] = $renderedOptions;
 }
开发者ID:VoDongMy,项目名称:xenforo-laravel5.1,代码行数:17,代码来源:ListOptions.php

示例3: renderHtml

 public function renderHtml()
 {
     $options = array();
     foreach ($this->_params['options'] as $i => $option) {
         $x = floor($option['display_order'] / 100);
         $options[$x][$i] = $option;
     }
     $renderedOptions = array();
     foreach ($options as $x => $optionGroup) {
         $renderedOptions[$x] = XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml($this, $optionGroup, $this->_params['canEdit']);
         foreach ($renderedOptions[$x] as &$renderedOption) {
             $renderedOption = preg_replace('#options/edit-option/(\\w+)#i', 'ewrporta/options/$1/edit', $renderedOption);
         }
     }
     $this->_params['renderedOptions'] = $renderedOptions;
 }
开发者ID:Sywooch,项目名称:forums,代码行数:16,代码来源:BlockOptions.php

示例4: renderHtml

 public function renderHtml()
 {
     $this->_params['renderedOptions'] = XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml($this, $this->_params['options'], false);
 }
开发者ID:VoDongMy,项目名称:xenforo-laravel5.1,代码行数:4,代码来源:List.php


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