本文整理汇总了PHP中TemplateRendererFactory::renderToString方法的典型用法代码示例。如果您正苦于以下问题:PHP TemplateRendererFactory::renderToString方法的具体用法?PHP TemplateRendererFactory::renderToString怎么用?PHP TemplateRendererFactory::renderToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemplateRendererFactory
的用法示例。
在下文中一共展示了TemplateRendererFactory::renderToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: usort
function _installedPlugins()
{
usort($this->_plugins, create_function('$a, $b', 'return strcasecmp($a["name"] , $b["name"]);'));
$i = 0;
$plugins = array();
foreach ($this->_plugins as $plugin) {
$plugins[] = array('color' => util_get_alt_row_color($i), 'available' => $plugin['available'] ? '' : 'pluginsadministration_unavailable', 'name' => $plugin['name'], 'version' => $plugin['version'], 'description' => $plugin['description'], 'flags' => $this->getPluginAvailableFlags($plugin), 'scope' => $GLOBALS['Language']->getText('plugin_pluginsadministration', 'scope_' . $plugin['scope']), 'plugin_id' => $plugin['plugin_id'], 'dont_touch' => $plugin['dont_touch'], 'dont_restrict' => $plugin['dont_restrict']);
$i++;
}
$presenter = new PluginsAdministration_Presenter_InstalledPluginsPresenter($this->_getHelp('manage'), $plugins);
return $this->renderer->renderToString('installed-plugins', $presenter);
}