\documentclass{article}
\usepackage{ulem}
\usepackage{graphicx}
\usepackage{hyperref}
\pagestyle{headings}
\begin{document}
\part{Util}
\section{bufferOutput()}
How to get the output of another Horde function back as a string, even if that function itself outputs directly to the browser:

<pre><code class="language-php">
\$html = Util::bufferOutput(array(\$formnew, 'renderActive'), \$RENDERER, \$vars, 'manageforum.php', 'post');
</code></pre>
Which is the same as the following function being called:

<pre><code class="language-php">
\$formnew->renderActive(\$RENDERER, \$vars, 'manageforum.php', 'post');
</code></pre>
... but we now have its output in the \$html variable.

\end{document}
