6.0.0-git
2021-01-16

Diff for Doc/Dev/UtilPackage between 2 and 3

+ 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:

++ 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<code type="php">

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

</code>



Which</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.