com\setasign\SetaFramework\Helper

OutputBufferHelper Class OutputBufferHelper

File: /SetaFramework/src/Helper/OutputBufferHelper.php

Class hierarchy

Summary

Static Methods

catchOutput()

public static OutputBufferHelper::catchOutput (
callable $callback,
bool $allowOutput = true
): string
Parameters
$callback : callable
 
$allowOutput : bool
 
Exceptions

Throws \com\setasign\SetaFramework\CriticalException If too many output buffer levels were closed $callback

Throws UnexpectedOutputException If $allowOutput is false but there was output

Throws \Throwable If $callback throws any exceptions