本文整理汇总了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;
}
示例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;
}
示例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();
}
示例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();
}