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


PHP AbstractViewHelper::renderChildren方法代码示例

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


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

示例1: renderChildrenWithVariables

 /**
  * Renders tag content of ViewHelper and inserts variables
  * in $variables into $variableContainer while keeping backups
  * of each existing variable, restoring it after rendering.
  * Returns the output of the renderChildren() method on $viewHelper.
  *
  * @param AbstractViewHelper $viewHelper
  * @param TemplateVariableContainer $variableContainer
  * @param array $variables
  * @return mixed
  */
 public static function renderChildrenWithVariables(AbstractViewHelper $viewHelper, TemplateVariableContainer $variableContainer, array $variables)
 {
     $backups = self::backupVariables($variableContainer, $variables);
     $content = $viewHelper->renderChildren();
     self::restoreVariables($variableContainer, $variables, $backups);
     return $content;
 }
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:18,代码来源:ViewHelperUtility.php

示例2: renderChildren

 /**
  * Helper method which triggers the rendering of everything between the
  * opening and the closing tag. In addition change -> to ->
  *
  * @return mixed The finally rendered child nodes.
  */
 public function renderChildren()
 {
     $content = parent::renderChildren();
     $content = str_replace('->', '->', $content);
     return $content;
 }
开发者ID:bernhardberger,项目名称:powermail,代码行数:12,代码来源:VariablesViewHelper.php

示例3: renderChildren

 /**
  * @return string
  */
 public function renderChildren()
 {
     // Make sure the current extension name always propagates to child nodes
     static::setExtensionNameInRenderingContext($this->renderingContext, $this->getExtensionName());
     return parent::renderChildren();
 }
开发者ID:busynoggin,项目名称:flux,代码行数:9,代码来源:AbstractFormViewHelper.php

示例4: renderChildren

 /**
  * @return string
  */
 public function renderChildren()
 {
     // Make sure the current extension name always propagates to child nodes
     $this->viewHelperVariableContainer->addOrUpdate(self::SCOPE, self::SCOPE_VARIABLE_EXTENSIONNAME, $this->getExtensionName());
     return parent::renderChildren();
 }
开发者ID:JostBaron,项目名称:flux,代码行数:9,代码来源:AbstractFormViewHelper.php


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