6.0.0-git
2024-05-20

Diff for Doc/Dev/UtilPackage between 1 and 2

+ Util



++ bufferOutput()



How to get the output of another Horde function back as a string, even if that function itself outputs directly to the browser:



<code type="php">

$html = Util::bufferOutput(array($formnew, 'renderActive'), $RENDERER, $vars, 'manageforum.php', 'post');

</code>



Which is the same as the following function being called:



<code type="php">

$formnew->renderActive($RENDERER, $vars, 'manageforum.php', 'post');

</code>



... but we now have its output in the $html variable.